ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Free Pdf server?

<< < (3/4) > >>

4wd:
I'm still not sure whether the printer you want to print to is connected to a Win or Linux machine but if you can see the printer as, eg. 'Canon BJ200 on Kartal6' then you should be able to pool the printers.

Otherwise, you could set your PDF printer to always save to the same directory and then use a simple(?) AutoIt(Hk) script to watch for any new PDFs and send them onto the machine with the printer by either having the print machine watch a directory, print then delete anything that appears or by injecting into it's print queue directly.

cmpm:
something like this?

http://www.aloaha.com/wi-software-en/autoprint-folder.php

only a lot cheaper! :)

kartal:
I'm still not sure whether the printer you want to print to is connected to a Win or Linux machine but if you can see the printer as, eg. 'Canon BJ200 on Kartal6' then you should be able to pool the printers.
-4wd (June 14, 2009, 09:29 PM)
--- End quote ---

I did check out the pooling solution, that looks like multiple printing. My problem is not multiple printing, my problem is that I do not have "drivers" for the xp64 computer 
which is my main tool because Canon does not make drivers for xp64 for that particular printer. I am trying to compensate for lack of drivers by printing docs to PDF----->to the real printer. As I said this is already possible and I have been using it for 4 years already. I am trying to find another solution.

If you share printers across the network you need printer drivers, in general one might not see that is happening because as long as the client computers are same os the driver is not an issue. And that has been my main problem because one of my machines is xp64 and that xp64 computer cannot access the shared printer on a windows computer because of the lack of the driver. One might think that when you are using a network printer you would not need such thing but you do.


Otherwise, you could set your PDF printer to always save to the same directory and then use a simple(?) AutoIt(Hk) script to watch for any new PDFs and send them onto the machine with the printer by either having the print machine watch a directory, print then delete anything that appears or by injecting into it's print queue directly.
-4wd (June 14, 2009, 09:29 PM)
--- End quote ---

And that is something I have already mentioned. I just am not that experienced with Ahk and do not know much about Autoit. I know python but WIn32 automation is not something I have done at all but I will check it out, so I will probably do it in Python.


4wd:
Otherwise, you could set your PDF printer to always save to the same directory and then use a simple(?) AutoIt(Hk) script to watch for any new PDFs and send them onto the machine with the printer by either having the print machine watch a directory, print then delete anything that appears or by injecting into it's print queue directly.-4wd (June 14, 2009, 09:29 PM)
--- End quote ---

And that is something I have already mentioned. I just am not that experienced with Ahk and do not know much about Autoit. I know python but WIn32 automation is not something I have done at all but I will check it out, so I will probably do it in Python.-kartal (June 14, 2009, 11:36 PM)
--- End quote ---

You still haven't said what type of machine the Canon printer is connected to but providing it's a Windows box, here's a solution:

In the following PDFPrinter refers to the PC generating the PDFs and RealPrinter refers to the PC with the Canon printer.

Download FileNotify and install it on both machines following the directions on the page - very simple.

On the PDFPrinter run the fnAdmin.exe command, it will ask to open the FileNotify parameter file, (default FileNotify.txt in the FileNotify directory), select Open.  On the next window select Add.
Select as below filling in the appropriate paths as necessary:

Free Pdf server?

On the RealPrinter run the fnAdmin.exe command, it will ask to open the FileNotify parameter file, (default FileNotify.txt in the FileNotify directory), select Open.  On the next window select Add.
Select as below filling in the appropriate paths as necessary:

Free Pdf server?

The PrintDelete.cmd resides in the FileNotify directory and is as follows:

--- ---rem AcroRd32.exe /t path printername drivername portname
rem Initiates Acrobat Reader, prints a file while suppressing
rem the Acrobat print dialog box, then terminates Reader.

AcroRd32.exe /t "%1" "Canon Super Printer" "Canon Super Printer Driver" "USB001"
del "%1"
NOTE: You need Acrobat Reader installed on the PC that's to do the real printing - the reason is simple, it's almost impossible to find any program that will print a PDF from the command line, (GhostScript may but I'm not going to bother installing it find out.)

Parameters for AcroRd32.exe, (or AcroBat), are as follows:
The four parameters of the /t option evaluate to:
path, printername, drivername, and portname (all strings).
path - the path and file to print.
printername - The name of your printer.
drivername - Your printer driver 's name.  Whatever appears in the Driver Used box when you view your printer 's properties.
portname - The printer 's port.  portname cannot contain any "/" characters; if it does, output is routed to the default port for that printer.

If using Acrobat,substitute Acrobat.exe in place of AcroRd32.exe in the command lines.
--- End quote ---

Last step, fire up services.msc and start the File Notification service.

The theory goes:
a) PDF is generated into the folder watched by that PC.
b) FileNotify performs the action which is to copy it to a shared directory on the other PC for printing.
c) The new PDF triggers FileNotify on the printing PC which calls PrintDelete.cmd
d) PrintDelete.cmd prints the PDF using AcroBat, (or Reader), and then deletes the file.
e) Job Done.

The theory is sound but I haven't tested it.

You, of course, have to make sure the folder is accessible for the PDF to be copied to as there's no error checking if it doesn't.

kartal:
4wd, you guys are rocking nowadays. Thanks for the detail steps. This will do it I think.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version