It's new! It's here! It's the best JODConverter release available. New Features
Upgrading from v2.1.1JODConverter now uses slf4j instead of commons-logging (to avoid classloader headaches); if you embed JODConverter in your own web applications make sure you provide your favourite slf4j implementation (such as slf4j-log4j12 or slf4j-jdk14) in the classpath in addition to slf4j-api.jar. Read the slf4j documentation for more. The API for specifying custom export options has changed (the previous API basically worked well only for PDF and had to be modified). Now you can specify any property that will be passed to OpenOffice.org in the MediaDescriptor when exporting the document, and separately for each DocumentFamily. If you were specifying custom PDF options as
DocumentFormat pdf = ...
pdf.setExportOption("ExportBookmarks", Boolean.TRUE);
the code will have to be changed as follows
DocumentFormat pdf = ...
Map<String,Object> pdfOptions = new HashMap<String,Object>(); // generics not required
pdfOptions.put("ExportBookmarks", Boolean.TRUE);
pdf.setExportOption("FilterData", pdfOptions);
(The increased complexity for PDF is due to the increased flexibility: now you can specify any property, not just "FilterData" which was implicitly assumed in the previous version.)
As a result of the change above, old XML format configuration files (document-formats.xml) unfortunately will not work with the new version. XmlDocumentFormatRegistry is not the default registry any more; instead the pure Java DefaultDocumentFormatRegistry is used if you don't specify a custom registry to the DocumentConverter. In fact, if you don't use XmlDocumentFormatRegistry then you don't need xstream in your classpath any more. This change should be transparent but it's worth mentioning. ChangeLogHere's the complete ChangeLog (as generated by Jira): Bug Fixes
Improvements
New Features
Tasks
|
|||
