Home: Perl Programming Help: Advanced:
print PDF?



BillKSmith
Veteran

Mar 4, 2013, 12:56 PM


Views: 5649
print PDF?

How can I print (hard copy) of a pdf file using perl on windows?

Using windows, I can manually drag a pdf file to a printer shortcut. The file is printed with the default pdf "viewer". Can I automate this operation with perl?
Good Luck,
Bill


lightspd
Novice

Mar 4, 2013, 4:34 PM


Views: 5643
Re: [BillKSmith] print PDF?

Here's a possible solution.
http://www.perlmonks.org/?node_id=824842


wickedxter
User

Mar 4, 2013, 7:12 PM


Views: 5639
Re: [BillKSmith] print PDF?

this might help

http://technet.microsoft.com/en-us/library/cc773259(v=ws.10).aspx

or

http://www.robvanderwoude.com/2kprintcontrol.php

or

http://www.verypdf.com/pdfprint/pdf-print-cmd.html

or

this is more for network printers

http://technet.microsoft.com/en-us/library/ee624057(v=ws.10).aspx


(This post was edited by wickedxter on Mar 4, 2013, 7:33 PM)


BillKSmith
Veteran

Mar 4, 2013, 8:45 PM


Views: 5634
Re: [lightspd] print PDF?

Thanks a lot! The code you suggest works perfectly. I do not yet understand the windows magic in it, but I plan to try.
Good Luck,
Bill


BillKSmith
Veteran

Mar 4, 2013, 8:49 PM


Views: 5632
Re: [wickedxter] print PDF?

I want to thank you also wickedxter. The previous post solved my immediate problem, but I plan to study your references.
Good Luck,
Bill