cognidox / OfficeToPDF

A command line tool to convert Microsoft Office documents to PDFs
https://www.cognidox.com/
Other
609 stars 137 forks source link

Convert rtf to pdf #67

Open PatrickMercadal opened 4 years ago

PatrickMercadal commented 4 years ago

Hi everybody,

I have issue to convert rtf file to pdf. I wrote a small file batch with this command inside "OfficeToPDF.exe C:\wamp64\www\Sales\Word\Temp\OPTIONS.rtf C:\wamp64\www\Sales\Word\Temp\OPTIONS.pdf". When I start this command I have following error :

La récupération de la fabrique de classes COM pour le composant avec le CLSID {000209FF-0000-0000-C000-000000000046} a échoué en raison de l'erreur suivante: 80070520 Une ouverture de session spécifée n'existe pas. Elle est peut-être déjà terminée. (Exception de HRESULT : 0x80070520). Did not convert Translation: The retrieval of the COM class factory for the component with the CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070520 A specified open ession does not exist. It may already be over. (Exception from HRESULT: 0x80070520). Did not convert

I try to modify access right by specifying the local Administrator in the composant service DCOM (dcomcnfg) with good rights (for me) in Microsoft Word 97 - 2003 Document. I add local Administrator in security tab and I specified in identity tab the local Administrator with his password but it doesn't works.

When I flag "executing user" instead of "this user" the command work perfectly. I must clarify that my idea is to start this command in a php file. So command work when I start it alone but it does'nt works when it started into my php file with the message above

Have you got already this issue and what's the solution to fix it ?

Best regards, Patrick