Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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.

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2020-10-24 09:10 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (242 votes). Check out past polls.