Forum


Replies: 3   Views: 1942
Generating toc before save
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  · 22-06-2020 - 14:08

Hello,

Generating TOC is only available using libreoffice and msword methods, the native method doesn't support it. You can read this information on the following documentation page:

https://www.phpdocx.com/api-documentation/format-conversion/convert-Word-docx-into-pdf-with-PHP (Parameters section - toc option)

Working with a Linux server, we recommend using the conversion plugin based on LibreOffice. Please check the docs folder included in the package to understand how to generate TOC contents when transforming to PDF/DOCX, get PDF A-1 files and other options available in transformDocument when using libreoffice.

Regards.