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

John Hewson edited comment on PDFBOX-2917 at 8/11/15 12:05 AM:
---------------------------------------------------------------

Looking at selection.pdf and immo-kurier_arsenal_93x62.pdf, the former appears 
correctly with my patch, while the latter doesn't. Both these files contain ICC 
profiles whose class is "output", space is "cmyk", version is 2.4.0, and 
connection space is "lab". The only difference is that the rendering intent is 
"perceptual" for the profile from selection.pdf, while the other profile's 
rendering intent is "relative".

Update: Actually Apple's ColorSync claims that the arsenal profile is 
"relative" but Java reads it as "perceptual", looking at the profile data, the 
header does specific that the profile is perceptual. I don't know what's going 
on there.


was (Author: jahewson):
Looking at selection.pdf and immo-kurier_arsenal_93x62.pdf, the former appears 
correctly with my patch, while the latter doesn't. Both these files contain ICC 
profiles whose class is "output", space is "cmyk", version is 2.4.0, and 
connection space is "lab". The only difference is that the rendering intent is 
"perceptual" for the profile from selection.pdf, while the other profile's 
rendering intent is "relative".

> PDF to Image, faint/dim Images
> ------------------------------
>
>                 Key: PDFBOX-2917
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2917
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>         Environment: Windows 8.1, jdk1.8.0_51, jre1.8.0_51
>            Reporter: Samuil Goranov
>            Priority: Trivial
>              Labels: images, newbie
>         Attachments: PDFBOX-2917-v2.patch, 
> PDFBOX-2917__Use_linear_RGB_for_image_color_conversion_to_workaround_JDK_bug.patch,
>  saved0.png, screenshot-1.png, selection.pdf
>
>
> {code:title=pdftoimage.java|borderStyle=solid}
> PDDocument document = null;
>         File file = new File("F:\\Projects\\java\\pdfbox\\complete.pdf");
>         document = PDDocument.load( file );
>         try {
>             // retrieve image
>             BufferedImage bi = new PDFRenderer(document).renderImageWithDPI( 
> 0 , 150, ImageType.RGB );
>             File outputfile = new File("saved0.png");
>             ImageIO.write(bi, "png", outputfile);
>         } catch (IOException e) {
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to