Free Support Forum -

Error when converting Word document to PDF


I tried to run the sample code of Java API, on CentOS 5.4 with OpenJDK 1.7.0_25.

when convert a word document to image (using ToImageSampleConversion class),
it worked fine.

but when convert the same document to PDF (using ToPdfSampleConversion class),
it output below errors:

Mar 04, 2015 2:02:53 PM com.groupdocs.conversion.converter.a.h b
SEVERE: Could not find any font. Use Document.addLocalFontPath(String path) to set correct path for your fonts location.
Mar 04, 2015 2:02:53 PM com.groupdocs.conversion.handler.ConversionHandler convertToPdf
SEVERE: null

could you give me some hints?

Hello ,

Sorry for the delay and for the issue that you have. We tested a lot of .word documents, but we can't reproduce the issue. Please share with us your .word file, and we will check it . We will notify you with the results.

Please come back with your details and we will be glad to help you.

Best regards
Evgen Efimov
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+