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

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 taking refuge in the Monastery: (6)
As of 2019-10-24 01:36 GMT
Find Nodes?
    Voting Booth?