You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Kenneth Berland (JIRA)" <ji...@apache.org> on 2010/09/21 19:27:33 UTC

[jira] Created: (PDFBOX-836) Write2File Fails for PDCalRGB

Write2File Fails for PDCalRGB
-----------------------------

                 Key: PDFBOX-836
                 URL: https://issues.apache.org/jira/browse/PDFBOX-836
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
            Reporter: Kenneth Berland
            Priority: Minor


decoding of PDPixelMap images with a CalRGB colormap is not implemented.

ERROR org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap - java.io.IOException: Not implemented
java.io.IOException: Not implemented
	at org.apache.pdfbox.pdmodel.graphics.color.PDCalRGB.createColorModel(PDCalRGB.java:113)
	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:201)
	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.write2OutputStream(PDPixelMap.java:310)
	at org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:139)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-836) Write2File Fails for PDCalRGB

Posted by "Kenneth Berland (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth Berland updated PDFBOX-836:
-----------------------------------

    Attachment: pdfbox-836.PDCalRGB.patch

Images appear to decode with this patch.

> Write2File Fails for PDCalRGB
> -----------------------------
>
>                 Key: PDFBOX-836
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-836
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>            Reporter: Kenneth Berland
>            Priority: Minor
>         Attachments: pdfbox-836.PDCalRGB.patch
>
>
> decoding of PDPixelMap images with a CalRGB colormap is not implemented.
> ERROR org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap - java.io.IOException: Not implemented
> java.io.IOException: Not implemented
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDCalRGB.createColorModel(PDCalRGB.java:113)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:201)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.write2OutputStream(PDPixelMap.java:310)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:139)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-836) Write2File Fails for PDCalRGB

Posted by "Kenneth Berland (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth Berland updated PDFBOX-836:
-----------------------------------

    Attachment: foo.pdf

Test pdf file.

> Write2File Fails for PDCalRGB
> -----------------------------
>
>                 Key: PDFBOX-836
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-836
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>            Reporter: Kenneth Berland
>            Priority: Minor
>         Attachments: foo.pdf, pdfbox-836.PDCalRGB.patch
>
>
> decoding of PDPixelMap images with a CalRGB colormap is not implemented.
> ERROR org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap - java.io.IOException: Not implemented
> java.io.IOException: Not implemented
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDCalRGB.createColorModel(PDCalRGB.java:113)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:201)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.write2OutputStream(PDPixelMap.java:310)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:139)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PDFBOX-836) Write2File Fails for PDCalRGB

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-836.
---------------------------------------

    Fix Version/s: 1.3.0
       Resolution: Fixed

I added the proposed patch in revision 1000516. I made a small change to take the bits per component into amount when creating the new colormodel.

Thanks for the contribution


> Write2File Fails for PDCalRGB
> -----------------------------
>
>                 Key: PDFBOX-836
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-836
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>            Reporter: Kenneth Berland
>            Priority: Minor
>             Fix For: 1.3.0
>
>         Attachments: foo.pdf, pdfbox-836.PDCalRGB.patch
>
>
> decoding of PDPixelMap images with a CalRGB colormap is not implemented.
> ERROR org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap - java.io.IOException: Not implemented
> java.io.IOException: Not implemented
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDCalRGB.createColorModel(PDCalRGB.java:113)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:201)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.write2OutputStream(PDPixelMap.java:310)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:139)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.