doc2any.exe very slow when executed from PHP

Q: Hello,
We are currently evaluating doc2any in order to perform on the fly conversion of files uploaded to our website into pdf.
Tests config environment:windows 7, 64-bits coupled with a WAMP server 2.2 running Apache 2.2.21 and PHP 5.3.9.
Situation:when we convert a doc to pdf manually via the MS DOS command line, it runs under 2 secs, which is great.
Command line I usedC:\wamp\www\flexpaper\doc2any_cmd>doc2any.exe D:\test.doc D:\output.pdf'
However when we execute exactly the same conversion via PHP it is 10 times slower! (>22 seconds) which is not acceptable.
For info here is the very simple php script used to conduct the test:
$commandbis = ('C:\wamp\www\flexpaper\doc2any_cmd\doc2any.exe D:\test.doc D:\output.pdf');
$results = system($commandbis, $output);
print_r($output);
Can you please let us know if this is something you are aware of and if this can be resolved by any means?
Also, I take the opportunity of raising this case to mention to you that conversion of .vsd (visio)to PDF does not seem to run with doc2any executed from the command line. Is this normal?

Solution one: Please arrange MS Word run from an interactive user account instead of SYSTEM user account to try again, please refer to following web pages for more information,
https://www.verydoc.com/doc-to-any-faq.html
https://www.verydoc.com/blog/convert-word-doc-file-to-pdf-file-with-openoffice.html
https://www.verydoc.com/others/configure-word-and-excel.htm
http://www.verypdf.com/wordpress/201201/how-to-call-doc2any-exe-or-htmltools-exe-from-a-service-20896.html
https://www.verydoc.com/blog/how-to-call-doc2any-exe-from-asp-code.html

Solution two:Add a new folder named "Desktop" under C:\Windows\SysWOW64\config\systemprofile. Then you need to reboot and it works.

System requirement :Windows 2008 Server x64
  Please make this folder:C:\Windows\SysWOW64\config\systemprofile\Desktop

System requirement :Windows 2008 Server x86

Please make this folder: C:\Windows\System32\config\systemprofile\Desktop    ...instead of dcomcnfg.exe.

This operation took away office automation problems in my system.

A Desktop folder seems to be necessary in the system profile folder to open file by Office file.

It disappears from Windows2008, Windows2003 had the folder, and I think it cause this error.

Here is the solution for conversion from doc to pdf  by doc2any converter executed from PHP slowly. If you have further question, please contact us by the ways supported on this website.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!