Forum


Replies: 11   Views: 388
Transform docx to pdf using ms word with php com closes slow
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  · 10-05-2024 - 10:11

Hello,

Please note that PHP should add or show a warning or error when it exceeds some limit (memory, time...). Do you get some information in the server logs or stdout when doing the conversion?

As the same issue happens using PHP CLI mode, some external setting or program must be causing this strange issue (some antivirus or external program? or some missing permission (https://www.php.net/manual/es/ref.com.php#120122)?). Is the same problem repeated with another document? for example a very simple DOCX that contains only a text paragraph.

What happens if the code ends the PHP execution before releasing the PHP COM instance?:

exit;
$MSWordInstance->Quit();

$MSWordInstance = null;

What Windows, MS Word and PHP versions are you using? If you send to contact[at]phpdocx.com a DOCX sample you are transforming we'll test it in our Windows test server.

Regards.