[ 
https://issues.apache.org/jira/browse/PDFBOX-3531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15575770#comment-15575770
 ] 

Tilman Hausherr commented on PDFBOX-3531:
-----------------------------------------

I did some more investigation. LCMS throws at a later time than KCMS. We 
already use a trigger to detect such problems, since PDFBOX-1295:
{code}
new Color(awtColorSpace, new float[getNumberOfComponents()], 1f);
{code}
However that one doesn't work for LCMS. I found a trigger that works for both:
{code}
awtColorSpace.fromRGB(new float[3]);
{code}
And will make a change. However I still recommend to keep the setting for KCMS 
I mentioned earlier. I had a bad user experience some time ago with LCMS, it 
was extremely slow.

> 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: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to