Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 chilling in the Monastery: (10)
As of 2014-09-18 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls