[ 
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


Reply via email to