Forum


Replies: 7   Views: 6129
Transform doc to 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 lclemenson  · 12-05-2015 - 08:10

Phpdocx works fine to create documents but I get that error when I want to transform a doc in a pdf : Notice: Undefined index: method in vendor/phpdocx/Classes/Phpdocx/Create/CreateDocx.inc line 5141 Here is my code : $docx = new \Phpdocx\Create\CreateDocx(); $docx->enableCompatibilityMode(); $docx->transformDocument('/var/www/oscar/web/CV/example_text.docx', '/var/www/oscar/web/CV/example_text.pdf', 'script'); Thanks for your help