Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
The stupid question is the question not asked
 
PerlMonks  

Re: Print PDF using Win32::OLE and Acrobat Reader

by molecules (Monk)
on Feb 23, 2010 at 14:37 UTC ( #824869=note: print w/ replies, xml ) Need Help??


in reply to Print PDF using Win32::OLE and Acrobat Reader

See How do I use the Windows command line with Acrobat and Adobe Reader?.

Since you can use it from the commandline, you can use the function system to do this from within Perl.

You will either need to have the Acrobat Reader directory in your PATH or you will need to use the full pathname for the executable.


Comment on Re: Print PDF using Win32::OLE and Acrobat Reader
Download Code
Re^2: Print PDF using Win32::OLE and Acrobat Reader
by kalyanrajsista (Scribe) on Feb 24, 2010 at 06:22 UTC

    I'm trying with the following program

    #!c:/perl/bin/perl -w use strict; use Win32::API; my $filename = "foobar.pdf"; my $shellopen = new Win32::API("shell32", "ShellExecute", ['N', 'P', 'P', 'P', 'P', 'I'], 'N'); $shellopen->Call(0, "print", $filename, 0, 0, 0);

    also, let me know if there are any issues/dependencies for the above program

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://824869]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-04-20 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls