Forum


Replies: 2   Views: 3689
Generate pdf
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 encourage you to download the current phpdocx version and check the Documentation available.

Posted by flo  · 02-03-2012 - 15:50

Hi,

I try to use your feature, make a PDF from a Word document.

this is my code :

[code] require_once 'phpdocx/classes/TransformDoc.inc';

//Genere le PDF
$document = new TransformDoc();
$document->setStrFile($donnees_suivi['doc']);
$document->generatePDF();[/code]

But the PDF is not the same as the word document, margin are not the same and some texte are hover other text.

Can you explain me how to fix margin for the pdf ?

How can I define a folder where to generate the PDF or capture the filename and save it on the server ?

Hope a reply on monday.

Thank you.

Posted by champton  · 11-04-2013 - 12:13

Has anyone experienced a DOM PDF error when generating a PDF from a word docx. Mine have generated QR codes and I was wondering if that was throwing the error.