jodconverter-core-3.0-beta-4-dist

459 views
Skip to first unread message

Venky S

unread,
Oct 28, 2015, 1:55:22 PM10/28/15
to JODConverter
Hi,

I am currently using JOD Converter for RTF to PDF conversion.

I have 2 queries:

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();

Thanks,
Venkatasubramaniam.S
Reply all
Reply to author
Forward
0 new messages