You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ahfei (JIRA)" <ji...@apache.org> on 2014/04/24 05:32:14 UTC

[jira] [Commented] (PDFBOX-2041) Convert PDF to Image (Strange Color)

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

ahfei commented on PDFBOX-2041:
-------------------------------

Actually this pdf file convert perferctly when i test in window enviroment.
This issue only happen in Ubuntu enviroment. 
I tried to remove all %%EOF weird characters from the file and retest again. 
It still return strange color page. 

> Convert PDF to Image (Strange Color)
> ------------------------------------
>
>                 Key: PDFBOX-2041
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2041
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.4
>         Environment: Java(1.7.0_45),   OS (Ubuntu) 
>            Reporter: ahfei
>         Attachments: PDFBOX-2041.pdf, PDFBOX-2041.pdf-1-bad.tif, pdfbox-2041.pdf-1-good.png
>
>
> Using PDFBox, tried to convert PDF to Image file  (case1.pdf, case1.jpg)
> Below is code i'm using : 
> BufferedImage image = page.convertToImage(BufferedImage.TYPE_INT_RGB, 200);    
> ImageIOUtil.writeImage(image, "jpg", imagePath, BufferedImage.TYPE_INT_RGB, 200);
> After convert, this image isn't look like pdf. Half page of it become blue and black color. 
> Attached images & PDF : https://www.dropbox.com/sh/jevegc8bh09km1o/5XkVwPUxri 



--
This message was sent by Atlassian JIRA
(v6.2#6252)