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