Forum


Replies: 1   Views: 331
Using the home_folder config option
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 QMAdmin  · 26-10-2021 - 11:05

Hi, Im running into issues when trying to convert .docx to pdf.

The issue relates to the home folder and when I set it programatically like so:

$docx->transformDocument('document.docx', 'output.pdf', 'libreoffice', array('homeFolder' => '/home/web'));

It works fine but when I try add this setting to the config file it's faling again with the rename error.

Here is the settings I'm using:

[transform]
; transform options. Only available for Advanced and Premium licenses. OpenOffice by default

; libreoffice, native, msword, openoffice
method = "libreoffice"

; libreoffice installation path, absolute path
path = "/usr/bin/soffice"

; custom HOME folder; allows se
home_folder = "/home/web"

 

Any idea why the config setting is not getting used?


 

Posted by admin  · 26-10-2021 - 11:17

Hello,

The home_folder setting was added in phpdocx 10. Your username has an Advanced 9.5 license tied; this version doesn't support that setting.

Please upgrade your license to the latest version available to use it.

Regards.