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