Print PDF Files by PDF Printer X ActiveX

Example PHP:
Example PHP:
$src="C:\\test\\test.pdf";
$Printer="My Printer Name";
if (file_exists($dest)) unlink($dest);
$c= new COM("PDFPrinter.PDFPrinterX");
$c->Print($src, $Printer, "-ps A4 -NumCopy 2");
if ($c->ErrorMessage=="") echo "OK"; else echo "fail:".$c->ErrorMessage;

Related topics