Hello All,
We purcahsed a corporate licence and everithing seems working, but we're having some issues converting documents from docx to pdf.
The document is generated, but some details are not the same or totally different...
For example:
- some cell and table borders set as "none" in DOCX are shown in PDF
- some fonts type and size set in DOCX are not the same in PDF
- some fields set in DOCX (date field, filename field) are totally wrong in PDF
Here's the code we used to convert from DOCX to PDF, and download that file:
$docx->createDocx($fullFileName);
$docx->transformDocx($fullFileName . '.docx', $fullFileName . '.pdf');
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename="' . $fileName . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($fullFileName));
readfile($fullFileName);
Please note that the ODF converter is enabled and OpenOffice is correctly running in headless mode... all the checks are green in the check page.
What is the best way to convert DOCX documents with tables, headers and footers in PDF?
Thanks
Roberto