We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Prob with image in RTF to PDF

Hi Everybody,

When I try to convert from a RTF file with an image Aspose Rise an expection.

My java seams to be nice :

try {
logger.info("Convertion RTF to PDF avec fichier : " + path + fileName);
String ret = null;
License license = new License();
FileInputStream lic = new FileInputStream(new File(ConfigManager
Document doc = new Document(path + fileName);
ret = fileName + “_aspose.pdf”;
doc.save(path + “/” + ret);
return ret;
} catch (Exception e) {
return null;

The logs says : Unknow file format

Hope you guys can help me.

Best regards,


Hi Lolo,

Kindly share the input RTF file. We need to test the conversion process in our environment.

Please find the RTF,

Hi Lolo,

Thank you for additional information. Unfortunately, I cannot reproduce the problem on my side. I used the latest version of Aspose.Words for testing. You can download the latest version from here:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />


With the latest version I can save your document into PDF format. So please try using the latest version of Aspose.Words for Java.


I’ve the same version …

I’m actually working with maven 3. To insert Aspose’s libs into my repository I use only one jar , which is Aspose.Words.jdk16.jar. Is this correct according to you ?

By the way I’m working under Linux.


Thank you for additional information. I answered here https://forum.aspose.com/t/54222

Best regards,