Free Support Forum -

Problem with AdLib

Dear Sirs,

we're currently evaluating your aspose.Words product. We're very happy with the product, but in the last days we ran into a big issue.

We submit Word documents to AdLib Express service for transformation in PDF format. See here for more info on AdLib.

If we submit a document that has been modified by aspose.Words, the AdLib product complain with an error message that says "unrecognized format". However, the file looks readable by MS Word.

This is a show-stopper problem for us. We cannot avoid usage of AdLib product.

We followed this test procedure:

" created a file in MS Word and saved it

" opened the file with aspose.Words, making no modification, and saved it

" at this time we can see a difference in file size: after modification by aspose, the file is a bit smaller

" submitted the file to AdLib transformation

This resulted in the error "unrecognized format" by AdLib

We suspect that the size difference might be the reason for AdLib complaints.

Please give any info as soon as possibile.

Thank you and best regards


Thanks for your request. I have tried to create PDF from word document created by Aspose.Words using AdLib Express. And it seems that all works fine on my side. Also you can convert a word document to PDF format using Aspose.Words and Aspose.Pdf. See the following link.

Best regards.

I can give a bit more details:

Microsoft Word .DOC format is not publicly documented. It is a proprietary format. There are only a few applications out there other than Microsoft Word that can read and write DOC files. The key is that all of them do this with a varying degree of nastiness. All due to the fact the format is not documented.

Some vendors support more features of the DOC files than others. We've spent countless hours on DOC import and export in Aspose.Words and believe our support for DOC is one of the best. If you try open/save on any complex DOC file in other applications or libraries you will see a lot of document content and formatting will be lost, such as fields, revisions, ole objects and so on.

From what I know AdLib can work via Microsoft Word Automation or directly through their native reader/writer. Probably you are using AdLib in the native mode. It will be hard to say whether the problem is caused by AdLib or by Aspose.Words. It might be that Aspose.Words writes a perfectly valid Microsoft Word file (all MS Word versions open it as well as other applications Open Office etc), but there might be a few bits set in a way that AdLib does not like it.

Unfortunately, it will be quite difficult to track down and fix because as you can imagine AdLib is a sort of competitor to Aspose.Words and they might not be willing to cooperate much. In the past I tried downloading evaluation versions of AdLib, had problems and really never heard back from their technical support. I don't even have AdLib running here in a test environment to see what could be causing the problem.

Due to all of the avove the problem with the DOC file in AdLib might be difficult to fix.

As Alexey pointed out correctly, you have an option of switching to the Aspose solution completely. Use Aspose.Words + Aspose.Pdf to produce PDF files.

Also, you can try using Aspose.Words saving RTF, WordML or DOCX and then passing this to AdLib. If AdLib fails in this case, but MS Word opens these files, you will be able to confront AdLib and ask them why they can't open a valid file. You will be able to claim these files are valid because these formats are documented and can be verified against the specification.

Thanks for repling,
we can evaluate your Aspose.pdf solution instead of Adlib, but we need to work with Java.
We looked for an example in the forums but we did not find anything. Can you provide a code snippet for converting a Word document to Pdf with Aspose/Java?

Best reguards
Michele Fadda

Hi, Michele,

Unfortunately, Aspose.Words for Java doesn’t support pdf yet. Support of Docx export will be released in November.

Best Regards,


Thanks for your request. You can find some example in the demo application “DocumentExplorer” (Aspose.Words.Java\demos\DocumentExplorer). But this demo doesn’t use Aspose.Pdf.

Best regards.

do you have any news about the release Aspose.Words for Java that will support pdf?

Best Regards.

Michele Fadda


We are planning the complete reengineering of PDF module in .Net baseline. Only after the reengineering PDF module will be ported to Java. So at the moment I can say only that PDF will be available somewhere in 2008.

Thank you for understanding,