I am currently using JOD Converter for RTF to PDF conversion.
1. What is the lastest version of jodconverter-core-3.0-beta-4-dist?
Because, name denotes that it is still beta version. Would like to know whether teh actual version of this has been released or not?
2. I am using the below code for RTF to PDF conversion. As it is taking nearly 5+ seconds, i need some hint how to optimize this code, so that conversion can happen within a second.
String filename = inputRTFFile.getName();
filename = filename.substring(0, filename.lastIndexOf("."));
officeManager.start(); // may tweak the start and stop code to appear elsewhere for additional efficiency
DocumentFormat docFormat = new DocumentFormat("Portable Document Format", "pdf", "application/pdf");
Map map = new HashMap();
map.put("FilterName", "writer_pdf_Export");
PropertyValue[] aFilterData = new PropertyValue[1];
aFilterData[0] = new PropertyValue();
aFilterData[0].Name = "SelectPdfVersion";
aFilterData[0].Value = 1;
map.put("FilterData", aFilterData);
docFormat.setStoreProperties(DocumentFamily.TEXT, map);
OfficeDocumentConverter docConverter = new OfficeDocumentConverter(officeManager);
docConverter.convert(inputRTFFile, outputPDFFile, docFormat);
officeManager.stop();