Forum


Replies: 5   Views: 3331
Generatepdf - lists/tables
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 garyhillerson  · 23-07-2012 - 20:22

New user. I'm creating Word docx files from simple HTML -- with a bullet list, a table, and a number list -- just fine.

However, when I try to generate a PDF from the same HTML, the bullet list shows up with no bullets, the table doesn't look like a table, and the number list isn't numbered. I must be missing a step?

I'm using this PHP code ($htmlDoc is the source HTML):
$tmpFileName = 'gtemp1';
$docx = new CreateDocx();
$docx->embedHTML($htmlDoc);
$docx->createDocx($tmpFileName); // Automatically appends .docx to the file name
$document = new TransformDoc();
$document->setStrFile($tmpFileName . '.docx');
$document->setStrOutputFile($fileName . '.pdf');
$document->generatePDF();

And the PDF has paragraph breaks, but no list/table formatting

Any suggestions appreciated

gary