Forum


Replies: 11   Views: 364
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  · 07-05-2024 - 17:44

Hello,

Please test the same conversion standalone using PHP CLI, so you can check if the issue comes from Apache configuration or some external setting.

Also please check if there's any change in performace calling Release() to close PHP COM. In TransformDocAdvMSWord.php, instead of:

$MSWordInstance->Quit();

$MSWordInstance = null;

Please try using:

$MSWordInstance->Quit();
$MSWordInstance->Release();

$MSWordInstance = null;

Although calling "Release()" is not needed to close the COM instance, maybe it improves the performance.

If you send to contact[at]phpdocx.com the DOCX you are transforming, we can test it on our test server to check the performance.

Regards.