09/14/2011, 08:57 PM
|
#1 (permalink) |
|
Member
![]() ![]() |
Update 10/26/2011:
Version 1.2.1 has been released. This release contains a fix that forces GhostScript to print simplex or duplex (based on the job setting). This should hopefully resolve issues that users reported about jobs not printing single-sided or double-sided (based on the selected option on the TouchPad). Summary: Touch2Pc Printer is a Windows application that emulates an HP printer and accepts print jobs from the TouchPad. From there, the received job is converted to PDF and optionally printed to a physical printer added to Windows. Where can I download? Binaries are available at: http://dl.dropbox.com/u/24894676/Tou...ter_v1.2.1.zip Source code is available at: http://dl.dropbox.com/u/24894676/Tou...v1.2.1_src.zip How do I run it?
Which ports need to be open? Touch2Pc Printer requires that TCP port 9100 and UDP port 161 be open for the program to work correctly. Also, the computer that the program is running on must be pingable from the TouchPad. How does it work? The program does multiple things, one of which is respond to SNMP requests sent by the TouchPad to identify the "printer". Whenever the TouchPad sends SNMP requests, the program responds with information about the HP pseudo-printer. Namely, SNMP variable 1.3.6.1.4.1.11.2.3.9.1.1.7.0 is used to retrieve the device string. This is how the TouchPad determines if a printer is an HP or not (see line 27 and 29 of SnmpObjects.cs to see what exactly the program sends as the response for that variable request). Once the TouchPad has received the SNMP response, it then presents the user with the print dialog. After the user confirms the print job, the TouchPad sends the print job (as a PCL file) to TCP/IP port 9100, which the program is listening on. The program reads in the job. After the program has received the job, the job is then converted to either PostScript (for physical printer printing), or PDF (for "printing to PDF") using GhostPCL. If printing to a physical printer, the program calls into the GhostScript API to print the PostScript file. Disadvantages I think the primary disadvantage to this solution is that you need to have a computer on the same local network running this program whenever you want to print. If you primarily use the TouchPad wherever you have a computer, that shouldn't pose a big problem. License Touch2Pc Printer is licensed under the GPL v3. However, it uses some components that are licensed under different terms (see legal.txt for details). Special Thanks Thanks to McTristan for working on several stability and new feature updates. I'd be happy to help anyone out if they encounter issues with the program. Previous Versions Version 1.2.0 binaries: http://dl.dropbox.com/u/24894676/Tou...ter_v1.2.0.zip Version 1.2.0 source: http://dl.dropbox.com/u/24894676/Tou...v1.2.0_src.zip Version 1.1.3 binaries: http://dl.dropbox.com/u/24894676/Tou...ter_v1.1.3.zip Version 1.1.3 source: http://dl.dropbox.com/u/24894676/Tou...v1.1.3_src.zip Version 1.1.2 binaries: http://dl.dropbox.com/u/24894676/Tou...ter_v1.1.2.zip Version 1.1.2 source: http://dl.dropbox.com/u/24894676/Tou...v1.1.2_src.zip Version 1.1.0 binaries: http://dl.dropbox.com/u/24894676/Tou...inter_v1.1.zip Version 1.1.0 source: http://dl.dropbox.com/u/24894676/Tou...r_v1.1_src.zip Version 1.0.0 binaries: http://dl.dropbox.com/u/24894676/tou...daemon_bin.zip Version 1.0.0 source: http://dl.dropbox.com/u/24894676/tou...mon_source.zip Last edited by theomodsim; 11/05/2011 at 01:20 PM. Reason: Previous version list |
09/14/2011, 10:23 PM
|
#4 (permalink) |
|
Member
![]()
Posts: 344
|
This really is awesome... thanks so much for sharing it with the rest of us. I just printed my first doc from the Touchpad to a Canon printer. Woohoo!
I did encounter a problem though.The program attempts to write to an "output" subdirectory underneath it's installation folder. If that folder is within a Program Files subdirectory though it'll fail on Windows 7 - programs can no longer write to the Program Files directory or sub-directories. Simple to work-around by just installing it elsewhere but it would be better if the program wrote it's output to the %TEMP% folder or perhaps %APPDATA%, then it would work regardless. Thanks again though... this is gonna end up on the front page of PreCentral soon I'm sure. |
09/14/2011, 10:48 PM
|
#7 (permalink) |
|
Member
![]()
Posts: 47
|
I might be missing something. I ran the command lines, approved the firewall access, added the printer successfully to my touchpad. However, whenever I try to print the command keeps saying EXCEPTION OCCURRED: the system cannot find the file specified.
This is on WIN 7 home premium 64 bit. also does the command have to be up at all times, or is there another way of running the program? Thanks. |
09/15/2011, 08:50 AM
|
#15 (permalink) |
|
Member
![]()
Posts: 57
|
Maybe I'm completely off with this thought, but wouldn't it be (theoretically) possible to implement the same functionality ON the Touchpad itself? So the program would run on the TP and pretend to be a HP printer, while it actually receives the file and forwards it to a non-HP printer?
|
09/15/2011, 09:09 AM
|
#16 (permalink) | |
|
Member
![]() |
Quote:
Thanks theomodsim. Apart from leaving Acrobat reader open it worked great on my XP machine (once I had installed .NET and MS WIC) |
|
09/15/2011, 10:31 AM
|
#17 (permalink) |
|
Moderator
![]() ![]() |
Same question.
Also how are people doing this, networked printer, usb connected, wireless? Since it sends to the computers default printer, I am guessing this will work with any of the 3, it just has to be the PC's default printer. Great work to the OP BTW... too bad my printer is direct wired to my office computer that is only on when I need to use it. |
09/15/2011, 11:00 AM
|
#18 (permalink) | |
|
Member
![]()
Posts: 344
|
Quote:
|
|
![]() |
|
| Tags |
| printing, touchpad |
| Thread Tools | |
| Display Modes | |
|
|



