Forum


Replies: 4   Views: 1414
Using transformdocument
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  · 29-09-2021 - 15:34

Hello,

You can customize the INI file used as main configuration using the PhpdocxUtilities::$_phpdocxConfig static public variable. For example:

PhpdocxUtilities::$_phpdocxConfig['transform']['method'] = 'libreoffice';
PhpdocxUtilities::$_phpdocxConfig['transform']['path'] = '/opt/libreoffice/program/soffice';
$docx->transformDocument('output.docx', 'output.pdf');

This static variable allows using a single installation for more than one license (the license key can be updated), changing the LibreOffice path dynamically and others.

Regards.