You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Axel Dörfler (JIRA)" <ji...@apache.org> on 2011/09/08 11:27:09 UTC

[jira] [Created] (PDFBOX-1116) Wrong colors with test file

Wrong colors with test file
---------------------------

                 Key: PDFBOX-1116
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 1.6.0
         Environment: Windows, JDK 1.6.0/27
            Reporter: Axel Dörfler


The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1116) Wrong colors with test file

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

Axel Dörfler updated PDFBOX-1116:
---------------------------------

    Description: 
The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

For completeness's sake, this is the code used to render the image:
            PDDocument doc=PDDocument.load(file);
            try
            {
                @SuppressWarnings("unchecked")
                List<PDPage> pages=doc.getDocumentCatalog().getAllPages();

                return pages.get(0).convertToImage();
            }
            finally
            {
                doc.close();
            }


  was:
The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

For completeness's sake, this is the code used to render the image:
<pre>
            PDDocument doc=PDDocument.load(file);
            try
            {
                @SuppressWarnings("unchecked")
                List<PDPage> pages=doc.getDocumentCatalog().getAllPages();

                return pages.get(0).convertToImage();
            }
            finally
            {
                doc.close();
            }

</pre>


> Wrong colors with test file
> ---------------------------
>
>                 Key: PDFBOX-1116
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Windows, JDK 1.6.0/27
>            Reporter: Axel Dörfler
>         Attachments: Flyer_A4_Zubehoer_10_Prozent_300dpi.jpg, Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf
>
>
> The colors of the attached PDF are wrong when rendered with pdfbox 1.6.
> As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.
> For completeness's sake, this is the code used to render the image:
>             PDDocument doc=PDDocument.load(file);
>             try
>             {
>                 @SuppressWarnings("unchecked")
>                 List<PDPage> pages=doc.getDocumentCatalog().getAllPages();
>                 return pages.get(0).convertToImage();
>             }
>             finally
>             {
>                 doc.close();
>             }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1116) Wrong colors with test file

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

Axel Dörfler updated PDFBOX-1116:
---------------------------------

    Description: 
The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

For completeness's sake, this is the code used to render the image:
            PDDocument doc=PDDocument.load(file);
            try
            {
                @SuppressWarnings("unchecked")
                List<PDPage> pages=doc.getDocumentCatalog().getAllPages();

                return pages.get(0).convertToImage();
            }
            finally
            {
                doc.close();
            }


  was:
The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

For completeness's sake, this is the code used to render the image:
{code}
            PDDocument doc=PDDocument.load(file);
            try
            {
                @SuppressWarnings("unchecked")
                List<PDPage> pages=doc.getDocumentCatalog().getAllPages();

                return pages.get(0).convertToImage();
            }
            finally
            {
                doc.close();
            }
{code}



> Wrong colors with test file
> ---------------------------
>
>                 Key: PDFBOX-1116
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Windows, JDK 1.6.0/27
>            Reporter: Axel Dörfler
>         Attachments: Flyer_A4_Zubehoer_10_Prozent_300dpi.jpg, Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf
>
>
> The colors of the attached PDF are wrong when rendered with pdfbox 1.6.
> As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.
> For completeness's sake, this is the code used to render the image:
>             PDDocument doc=PDDocument.load(file);
>             try
>             {
>                 @SuppressWarnings("unchecked")
>                 List<PDPage> pages=doc.getDocumentCatalog().getAllPages();
>                 return pages.get(0).convertToImage();
>             }
>             finally
>             {
>                 doc.close();
>             }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1116) Wrong colors with test file

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

Axel Dörfler updated PDFBOX-1116:
---------------------------------

    Attachment: Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf

Problematic PDF

> Wrong colors with test file
> ---------------------------
>
>                 Key: PDFBOX-1116
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Windows, JDK 1.6.0/27
>            Reporter: Axel Dörfler
>         Attachments: Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf
>
>
> The colors of the attached PDF are wrong when rendered with pdfbox 1.6.
> As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1116) Wrong colors with test file

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

Axel Dörfler updated PDFBOX-1116:
---------------------------------

    Attachment: Flyer_A4_Zubehoer_10_Prozent_300dpi.jpg

Rendered with pdfbox.


> Wrong colors with test file
> ---------------------------
>
>                 Key: PDFBOX-1116
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Windows, JDK 1.6.0/27
>            Reporter: Axel Dörfler
>         Attachments: Flyer_A4_Zubehoer_10_Prozent_300dpi.jpg, Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf
>
>
> The colors of the attached PDF are wrong when rendered with pdfbox 1.6.
> As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1116) Wrong colors with test file

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

Axel Dörfler updated PDFBOX-1116:
---------------------------------

    Description: 
The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

For completeness's sake, this is the code used to render the image:
{code}
            PDDocument doc=PDDocument.load(file);
            try
            {
                @SuppressWarnings("unchecked")
                List<PDPage> pages=doc.getDocumentCatalog().getAllPages();

                return pages.get(0).convertToImage();
            }
            finally
            {
                doc.close();
            }
{code}


  was:
The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

For completeness's sake, this is the code used to render the image:
            PDDocument doc=PDDocument.load(file);
            try
            {
                @SuppressWarnings("unchecked")
                List<PDPage> pages=doc.getDocumentCatalog().getAllPages();

                return pages.get(0).convertToImage();
            }
            finally
            {
                doc.close();
            }



> Wrong colors with test file
> ---------------------------
>
>                 Key: PDFBOX-1116
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Windows, JDK 1.6.0/27
>            Reporter: Axel Dörfler
>         Attachments: Flyer_A4_Zubehoer_10_Prozent_300dpi.jpg, Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf
>
>
> The colors of the attached PDF are wrong when rendered with pdfbox 1.6.
> As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.
> For completeness's sake, this is the code used to render the image:
> {code}
>             PDDocument doc=PDDocument.load(file);
>             try
>             {
>                 @SuppressWarnings("unchecked")
>                 List<PDPage> pages=doc.getDocumentCatalog().getAllPages();
>                 return pages.get(0).convertToImage();
>             }
>             finally
>             {
>                 doc.close();
>             }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1116) Wrong colors with test file

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

Axel Dörfler updated PDFBOX-1116:
---------------------------------

    Description: 
The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.

For completeness's sake, this is the code used to render the image:
<pre>
            PDDocument doc=PDDocument.load(file);
            try
            {
                @SuppressWarnings("unchecked")
                List<PDPage> pages=doc.getDocumentCatalog().getAllPages();

                return pages.get(0).convertToImage();
            }
            finally
            {
                doc.close();
            }

</pre>

  was:
The colors of the attached PDF are wrong when rendered with pdfbox 1.6.

As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.



> Wrong colors with test file
> ---------------------------
>
>                 Key: PDFBOX-1116
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Windows, JDK 1.6.0/27
>            Reporter: Axel Dörfler
>         Attachments: Flyer_A4_Zubehoer_10_Prozent_300dpi.jpg, Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf
>
>
> The colors of the attached PDF are wrong when rendered with pdfbox 1.6.
> As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.
> For completeness's sake, this is the code used to render the image:
> <pre>
>             PDDocument doc=PDDocument.load(file);
>             try
>             {
>                 @SuppressWarnings("unchecked")
>                 List<PDPage> pages=doc.getDocumentCatalog().getAllPages();
>                 return pages.get(0).convertToImage();
>             }
>             finally
>             {
>                 doc.close();
>             }
> </pre>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (PDFBOX-1116) Wrong colors with test file

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

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

       Resolution: Fixed
    Fix Version/s: 1.7.0
         Assignee: Andreas Lehmkühler

I added a color conversion for jpegs using a separation color space in revision 1188317 so that everything looks fine now.
                
> Wrong colors with test file
> ---------------------------
>
>                 Key: PDFBOX-1116
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Windows, JDK 1.6.0/27
>            Reporter: Axel Dörfler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.7.0
>
>         Attachments: Flyer_A4_Zubehoer_10_Prozent_300dpi.jpg, Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf
>
>
> The colors of the attached PDF are wrong when rendered with pdfbox 1.6.
> As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.
> For completeness's sake, this is the code used to render the image:
>             PDDocument doc=PDDocument.load(file);
>             try
>             {
>                 @SuppressWarnings("unchecked")
>                 List<PDPage> pages=doc.getDocumentCatalog().getAllPages();
>                 return pages.get(0).convertToImage();
>             }
>             finally
>             {
>                 doc.close();
>             }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (PDFBOX-1116) Wrong colors with test file

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

Andreas Lehmkühler commented on PDFBOX-1116:
--------------------------------------------

Most of the included pictures are CMYK-based jpegs which can't be handled correct by JAI. I added a color conversion for such images in revision 1187901.

There is one issue left on the second page. The first picture in the third row uses a separation colorspace which leads to an inverted picture.
                
> Wrong colors with test file
> ---------------------------
>
>                 Key: PDFBOX-1116
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1116
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: Windows, JDK 1.6.0/27
>            Reporter: Axel Dörfler
>         Attachments: Flyer_A4_Zubehoer_10_Prozent_300dpi.jpg, Flyer_A4_Zubehoer_10_Prozent_300dpi.pdf
>
>
> The colors of the attached PDF are wrong when rendered with pdfbox 1.6.
> As a sitenote, on a Windows 2000 system I do not have access to regularly, the text was completely messed up, too. I could not reproduce this on Windows Vista, though.
> For completeness's sake, this is the code used to render the image:
>             PDDocument doc=PDDocument.load(file);
>             try
>             {
>                 @SuppressWarnings("unchecked")
>                 List<PDPage> pages=doc.getDocumentCatalog().getAllPages();
>                 return pages.get(0).convertToImage();
>             }
>             finally
>             {
>                 doc.close();
>             }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira