Forum


Replies: 3   Views: 1938
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 Encaster  · 22-06-2020 - 13:07

Hi! I'm using adv license and i got problem. I need to generate TOC before save with native method. Is it possible? Msword method is not available on my linux server.
PS. if i try to transform from docx to docx with native method, nothing happens. 
The code generates test.docx correctly, then creates test2.pdf. But not creates test2.docx. Can you explain why?
 

$docx->createDocx('test.docx');
$docx->transformDocument('test.docx', 'test2.pdf');
$docx->transformDocument('test.docx', 'test2.docx');