Our Java web application uses Aspose.Words to generate documents with data from our application. Recently, a client wanted to use DOCX files instead of DOC. We made the switch with Aspose.Words so we are now saving to DOCX. The problem is that we take the generated document and run it through Adlib Express Server (
http://www.adlibsoftware.com/products/adlib-express.aspx
) to convert it to a PDF document. Whenever we save to DOCX, Express Server errors with a message that the document is an Unsupported File Type. If I open the file in Microsoft Word and resave it, the file size changes and the document can be successfully converted. Does anyone know why Aspose.Words creates documents that Adlib Express Server cannot convert? I opened a ticket with Adlib and here is basically the response that I got from them:
It appears the ‘Aspose’ system is creating a DOCX file that contains the base structure of a Word file (can open for viewing) but certain content and structural elements are missing that indicate to Express that the file is a valid Word document. Express needs to know the content and structural data in order to perform the conversion.
Anyone have any insight or experience with Adlib Express Server compatibility? Whenever we save to a DOC file with Aspose.Words, Express Server can convert the document. I am attaching a sample file called “original.docx” which we generated with Aspose.Words. That document fails conversion. I’m also attaching “resaved.docx” which was creating by opening the original file and resaving it with Microsoft Office. That document is successfully converted.
Also, I know that Aspose.Words can save to PDF. We have been using Express Server to convert documents and wanted to continue to do that if possible. If Aspose.Words and Adlib will never play nice, then we may have to change our code to use Aspose.Words do the conversion.
Thanks!