Forum


Replies: 11   Views: 2118
Pdf lossless compression doesn't work?
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  · 31-03-2020 - 10:26

Hello,

If no error nor document appears then the macro hasn't been added to the correct .config directory. Please note that /var/www/wonder/.config seems the .config folder of the web user, if you are running it using the command line the correct .config folder should be in the home folder of the user. You can get the HOME folder (in the same way you are testing LibreOffice) using PHP:

<?php
echo getenv("HOME");

or changing to ~ folder.

We have tested the same steps using fresh installations of Debian, Ubuntu, CentOS, RedHat, Windows and macOS with LibreOffice 5 and LibreOffice 6, from PHP 5 to PHP 7.4 and in all cases adding the macro to the correct Module1.xba file, the conversion works correctly. Sorry but we don't know the issue without checking it, we'd need to connect to the server to test it.

Regards.