AnsweredAssumed Answered

Transformer from ODT (open doucment format) to PDF Error

Question asked by mxc on Apr 27, 2014
Latest reply on May 9, 2014 by mxc
Hi all,

When I try and convert form an odt file to pdf using the API

ContentWriter writer = contentService.getTempWriter();        
ContentTransformer transformer = contentService.getTransformer(reader.getMimetype(), MimetypeMap.MIMETYPE_PDF);
transformer.transform(reader, writer);

I get this error.
   claimed mime type: application/vnd.oasis.opendocument.text
   detected mime type: application/zip

I know odt is just a zip file but its mimetype should be part of the ziped info. Looks like the transformer is auto-detecting the mimetype incorrectly. Anyone else had this problem?