Forum


Replies: 2   Views: 4873
Error converting docx 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 admin  · 01-07-2018 - 20:59

Hello,

That exception:

PHP Fatal error:  Uncaught Exception: The chosen extension is not supported

appears when the file extension isn't one of the allowed extensions:

$this->_allowedExtensions = array('docx', 'pdf', 'odt', 'sxw', 'rtf', 'doc', 'txt', 'html', 'htm', 'wiki', 'png');

Maybe you are using uppercase file extensions?

To test the conversion plugin, please run the included sample in the examples/FormatConversion/transformDocument folder using PHP CLI mode.

If you send to contact[at]phpdocx.com SSH access to your server and the path to phpdocx, the dev team will check it.

Regards.