This project has moved and is read-only. For the latest updates, please go here.

Error returned when calling OfficeToPdf.exe using a jsp web application

Feb 21, 2012 at 9:26 AM
Edited Feb 21, 2012 at 9:30 AM

I am trying to call OfficeToPdf.exe from a jsp web application running under Tomcat, but it always fails. However, testing the OfficeToPdf.exe in Windows command prompt window give successful result.

Is there a way to make OfficeToPdf.exe generate a report file for debugging?

From the Task Manager, I notice that e.g. Winword.exe*32 is activated before the failure happens. What could be the possible reasons for the failure?

Windows 2008 R2 64-bit, Tomcat6 64-bit, Microsoft Office 2010 32-bit

By the way, I notice that the office exe files, e.g. Winword.exe*32 is always running in the background even after the failure happens. If the test is done again and again, multiple Winword.exe*32 are seen in the Task Manager. These exe files do not seem to be able to terminate themselves whenever error occurs, which is not good. Hope the developer can improve on this issue.

May 26, 2014 at 3:29 AM
I wanted to convert Word to PDF, but when I tested this I encountered the same issue. So I switched to another tool.