Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22005

Fix conversion of a picture or liveconnect doc to PDF

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.10
    • Fix Version/s: 7.10-HF25, 8.10-HF06, 9.2
    • Component/s: Convert

      Description

      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:

      1. Create a File document and attach a PNG file
      2. 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)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d