cognidox / OfficeToPDF

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

Feature: Is there a means to identify Office conversion process? #24

Open lalo-mx opened 6 years ago

lalo-mx commented 6 years ago

In some conversions the process fails due to concurrent executions, infinite sheets, password protected documents and many other reasons. To prevent that the process is hung indefinitely we have implemented a timeout to close the OfficeToPDF process. The task is working as expected but the Office process "excel.exe" or "winword.exe" sometimes remains open. Could the Process ID of the Office process be print to the output to be able to close that process?

vittala commented 6 years ago

Hi - presently, we don't have a means of getting the process ID of the Office application used. I suspect we'd have to resolve issue #11 first.

Schoof-T commented 6 years ago

If this would get solved, this would make this piece of software amazing. Currently we cannot use it because of this issue.

@lalo-mx Did you find a solution for this?

lalo-mx commented 6 years ago

@TSSchoof I could not find a reliable way to obtain the PID of the Office instance and i ended closing all instances of Word or Excel depending of the file being converted.