[
https://issues.apache.org/jira/browse/PDFBOX-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13850611#comment-13850611
]
Tilman Hausherr commented on PDFBOX-52:
---------------------------------------
>From the "too good to be true" dept:
The JPXFilter almost does the job. (The JPXFilter just calls java imageio, and
the image is just a JPEG). There's one problem left: In the PDF and in reality,
the FAG company logo is red. In the rendered image, the logo is blue. Saving
the BuffereredImage into a file with java imageio creates a file with the logo
in red.
The type of the buffered image returned in
{code}
BufferedImage bi = ImageIO.read(compressedData);
{code}
is 5, which is TYPE_3BYTE_BGR. But the colorspace is set to PDDeviceRGB,
because colorModel.getColorSpace().isCS_sRGB() is true.
So the information that it is BGR is lost somewhere?!
(I did look at that tech note from Adobe re "Markers", but didn't find anything
relevant in the image itself)
I solved this by simply swapping the bytes in the buffer, but I wonder if
there's a better (general) solution, or if I missed something else.
> DCTFilter is not implemented yet
> --------------------------------
>
> Key: PDFBOX-52
> URL: https://issues.apache.org/jira/browse/PDFBOX-52
> Project: PDFBox
> Issue Type: New Feature
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552835&aid=1181506
> Originally submitted by joswol on 2005-04-12 07:03.
> PDFBox-0.7.1: org.pdfbox.filter.DCTFilter - Warning:
> DCTFilter.decode is not implemented yet, skipping this
> stream.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)