I am trying to combine PDF files using pdftk using PHP and COM objects. I am looking to get an output of what the wshShell.Run() command is generating since it is not creating the output file. Here is a snippet of my code where I need to get the output.
Code: Select all
$command = "\"C:/Program Files (x86)/PDFtk Server/bin/pdftk.exe\" ".$pdfMerge."cat output F:/Websites/SOMEPATHWITHNOSPACES/Reprint/out.pdf"; $WshShell = new COM("WScript.Shell"); $WshShell->Run($command);