Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3531

LCMS error 13: Couldn't link the profiles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3
    • 2.0.4, 3.0.0 PDFBox
    • Rendering
    • None
    • Oracle JDK 1.8.0_112
      Windows 10

    Description

      I am also running against the error "LCMS error 13: Couldn't link the profiles"
      The error occures frequent times, depending on which document to be displayed with PDFBox.

      Stack:

      Exception in thread "main" java.awt.color.CMMException: LCMS error 13: Couldn't link the profiles
      	at sun.java2d.cmm.lcms.LCMS.createNativeTransform(Native Method)
      	at sun.java2d.cmm.lcms.LCMS.createTransform(Unknown Source)
      	at sun.java2d.cmm.lcms.LCMSTransform.doTransform(Unknown Source)
      	at sun.java2d.cmm.lcms.LCMSTransform.colorConvert(Unknown Source)
      	at java.awt.image.ColorModel.getLinearGray16ToOtherGray8LUT(Unknown Source)
      	at java.awt.image.ComponentColorModel.setupLUTs(Unknown Source)
      	at java.awt.image.ComponentColorModel.<init>(Unknown Source)
      	at java.awt.image.ComponentColorModel.<init>(Unknown Source)
      	at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.toRGBImageAWT(PDColorSpace.java:275)
      	at org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.toRGBImage(PDICCBased.java:200)
      	at org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.from8bit(SampledImageReader.java:257)
      	at org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getRGBImage(SampledImageReader.java:143)
      	at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:340)
      	at org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:793)
      	at org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:62)
      	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815)
      	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472)
      	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446)
      	at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
      	at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189)
      	at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145)
      	at org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:94)
      	at org.apache.pdfbox.tools.PDFToImage.main(PDFToImage.java:236)
      

      Reproduced the bug with the 2.0.0-RC, and now also with the 2.0.3
      Reason are the "TÜV/QA" certified images at the bottom of the pages.

      Created a document where it's clearly reproducible with pdfbox-app
      So the "final" argument mentioned in PDFBOX-2454, that it wasn't reproducible, now isn't valid any more.

      Steps to reproduce:

      • download PDF file from http://www.igs.at/downloads/PDFBOX_LCMS_Error_13.pdf and save as C:\test.pdf
      • run the PDFBox image rendering app "PDFToImage":
        java -cp pdfbox-2.0.3.jar;pdfbox-app-2.0.3.jar;preflight-2.0.3.jar;preflight-app-2.0.3.jar org.apache.pdfbox.tools.PDFToImage C:\test.pdf
        > you will immediately see the stack mentioned above, in console/error output.

      Attachments

        1. gray.icc
          2 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              BIMMINGER Christoph Bimminger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: