Since NXP-16831, the conversion of a picture from the summary does not use the dedicated converter pictureConvertToPDF and use the default one which tries to first transform the file to HTML. But no picture to HTML converter exists in the platform.
Steps to reproduce:
- Create a File document and attach a PNG file
- On the summary view, click on the PDF icon
This error is produced in the logs
... Caused by: javax.faces.el.EvaluationException: org.nuxeo.ecm.core.convert.api.ConversionException: Cannot find converter from type image/png to type text/html ... Caused by: org.nuxeo.ecm.core.convert.api.ConversionException: Cannot find converter from type image/png to type text/html at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convertToMimeType(ConversionServiceImpl.java:408) at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convertBlobToMimeType(ConversionServiceImpl.java:268) at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convertBlobToPDF(ConversionServiceImpl.java:246) at org.nuxeo.ecm.webapp.action.ConversionActionBean.generatePdfFileFromBlobHolder(ConversionActionBean.java:218)
The same kind of error appears when trying to convert to PDF a LiveConnect document from Google Drive.
Caused by: org.nuxeo.ecm.core.convert.api.ConversionException: Cannot find converter from type application/vnd.google-apps.spreadsheet to type text/html at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convertToMimeType(ConversionServiceImpl.java:403) at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convertBlobToMimeType(ConversionServiceImpl.java:263) at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convertBlobToPDF(ConversionServiceImpl.java:241) at org.nuxeo.ecm.automation.core.operations.blob.BlobToPDF.run(BlobToPDF.java:56)