Forum


Replies: 1   Views: 3251
Page numbering for 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 Cardinalis  · 07-05-2012 - 17:53

It is possible de add page numbering on a pdf with PHPDOCX Pro?

When I try :

$docx = new CreateDocx();
$wml = file_get_contents('contract.html');
$docx->embedHTML($wml);

$docx->addFooter('2012', array(
'pager' => 'true',
));

$time = time();
$output = 'uploads/'.$time;
$docx->createDocx($output);

$pdf = new TransformDoc();
$pdf->setStrFile($output.'.docx');
$pdf->generatePDF($output.'.pdf');


I have correctly the page numbers on the .docx but not in the .pdf

If anyone can help with this I would really appreciate it.