Replies: 2   Views: 2038
Convert docx with header/footer to pdf without any office?
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 admin  · 24-02-2020 - 15:16


UPDATE: phpdocx 13 added support for headers and footers using the native conversion plugin.

DOCX to HTML allows getting each structure of the transformed DOCX using the returnHTMLStructure option ( Using this option you can get headers, footers and body transformed to HTML and then use DOMPDF (or any other HTML to PDF lib) to create the PDF output with the transformed contents, including headers and footers (

We recommend using the conversion plugin based on LibreOffice.