Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We are using phpdocx to change a picture in a DOCX document and export this to PDF
this is the code how we do it:
require_once '/path/to/phpdocx_pro/classes/CreateDocx.inc';
$objDocx = new CreateDocx();
$objDocx->setTemporaryDirectory('/path/to/tempdir/');
$objDocx->addTemplate('/path/to/mydocument.docx');
$objDocx->addTemplateImage('MARKER', '/path/to/myimage.png');
$objDocx->createDocx('/path/to/newdocument.docx');
$objDocx->transformDocxUsingMSWord('/path/to/newdocument.docx', '/path/to/document.pdf');
Everthing is working as expected with the small (but for us important) issue that the pitches changes a bit, so that in the PDF file some text is on the next page compared to the original DOCX file. (This happens before the image!)
Any idea what's going wrong here?