[
https://issues.apache.org/jira/browse/PDFBOX-3531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15572745#comment-15572745
]
Tilman Hausherr edited comment on PDFBOX-3531 at 10/13/16 6:13 PM:
-------------------------------------------------------------------
Did you use the {{-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider}}
option? Because when I don't, I get the exception you mention.
was (Author: tilman):
Did you use the {{-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider}}
option?
> LCMS error 13: Couldn't link the profiles
> -----------------------------------------
>
> Key: PDFBOX-3531
> URL: https://issues.apache.org/jira/browse/PDFBOX-3531
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.3
> Environment: Oracle JDK 1.8.0_112
> Windows 10
> Reporter: Christoph Bimminger
>
> 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:
> {noformat}
> 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)
> {noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]