Q: I am trying to convert docx word documents to pdf in a windows service with PDFNet and I’m having problems with some winword processes getting hung. Also when executing the same transformation but not in a windows service the performance is much better. I am developing in JAVA and installing it as a service with java wrapper service.
PRODUCT: PDFNet SDK
OPERATING SYSTEM: Windows Server 2008 R2 Standard, Office 2007
The most likely problem is that you are using MS Office prior to 2007 SP2. For Office versions prior to 2007 SP2 the conversion goes through a virtual printer driver which is slow and can cause issues when using from a Windows service.
So in summary you need MS Office 2007 SP2 or higer (MS Office 2010+).