Are there certain attributes of an ActiveX DLL that will enable or disable it to run in PHP? I have used a PDF creation DLL in php but the results didn't please me (although the DLL "did" run)
I have downloaded a replacement, but I cannot get this one to work. I get the following error:
Uncaught exception 'com_exception' with message 'Failed to create COM object `PDFmaker.CreatePDF': Invalid syntax ' in C:\Program Files\Apache Group\Apache2\htdocs\functions\php\html_to_pdf.php:26 Stack trace: #0 C:\Program Files\Apache Group\Apache2\htdocs\functions\php\html_to_pdf.php(26): com->com('PDFmaker.Create...')
The code I am using to create the call is as follows:
//setup the pdfmaker object
$obj_grabber = new COM("PDFmaker.CreatePDF");
//set the default printer
$str_printer = "Generic Postscript Printer";
//set the temp path
$obj_grabber->TempFilePath = "c:\temp";
//create the file path for the destination PDF
$str_my_file = "c:\myfile.pdf";
//do the call to the activex object to create the PDF file
$obj_grabber->CreatePDFfromMiscFile ($str_my_file, $str_source, $str_printer);
Any help would be greatly appreciated!!!
Thanks, Chris