Hi!
Well I'm using livedocx for convert DOCX, DOC... to PDF and I have a problem. When I convert a document, the resulting PDF is not the same as the original document, it creates spaces at the beginning of the page. do I have to specify the format to convert? My code:
I would also like to know if there is any way (or documentation) to edit documents generated to add content. Or, as in this case, remove the blanks.
Sorry for my terrible English.
Well I'm using livedocx for convert DOCX, DOC... to PDF and I have a problem. When I convert a document, the resulting PDF is not the same as the original document, it creates spaces at the beginning of the page. do I have to specify the format to convert? My code:
PHP Code:
$mailMerge = new Zend_Service_LiveDocx_MailMerge();
$mailMerge->setUsername('xxxx')
->setPassword('xxxxx')
->setWsdl('xxxxpremiumxxxxxxx?WSDL');
$mailMerge->setLocalTemplate($wordsPath.$filename);
$mailMerge->createDocument();
$document = $mailMerge->retrieveDocument('pdf');
file_put_contents($pdf, $document);
Sorry for my terrible English.