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
        .getInstance().getValue("URL_LIC_ASPOSE")));
    license.setLicense(lic);
    Document doc = new Document(path + fileName);
    ret = fileName + "_aspose.pdf";
    doc.save(path + "/" + ret);
    return ret;
}
catch (Exception e)
{
    e.printStackTrace();
    logger.error(e.getLocalizedMessage());
    return null;
}

The logs says : Unknow file format

Hope you guys can help me.

Best regards,

Lolo

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:
https://releases.aspose.com/words/java
With the latest version I can save your document into PDF format. So please try using the latest version of Aspose.Words for Java.

Oooops,

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.

Hi

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

Best regards,