Print PDF files With PDFPrinterX and Perl

Please, download and install Total PDF PrinterX. Using the sample code below you will be able to Print PDF files.


  Example Perl:

use Win32::OLE;

my $src="C:\\test\\test1.pdf";
my $dest="Name Of Printer";

my $c = CreateObject Win32::OLE 'PDFPrinter.PDFPrinterX';
$c->Print($src,$dest, "-log c:\\test\\PDFPrinter.log");
print $c->ErrorMessage if -e $dest;
If you need examples on other languages please contact us. We will create any example specially for you.

Related topics