[
https://issues.apache.org/jira/browse/PDFBOX-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13907229#comment-13907229
]
John Hewson edited comment on PDFBOX-1058 at 2/20/14 5:45 PM:
--------------------------------------------------------------
The color problems (and "quality" problem) in the photo were caused by
incorrect YCCK color conversionThe green color in the wavy lines was caused by
the DeviceN color space implementation. Both these are fixed in PDFBOX-1893,
however there has been a regression and a portion of the image is missing.
was (Author: jahewson):
The color problems (and "quality" problem) in the photo were caused by
incorrect YCCK color conversion, this is fixed in PDFBOX-1893. The green color
in the wavy lines was caused by the DeviceN color space implementation. Both
these are fixed in PDFBOX-1893, however there has been a regression and a
portion of the image is missing.
> Converting PDF to Image gives error and the image generated is of poor quality
> ------------------------------------------------------------------------------
>
> Key: PDFBOX-1058
> URL: https://issues.apache.org/jira/browse/PDFBOX-1058
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 1.6.0
> Environment: Windows 7 Professional
> Reporter: Nidhi Jain
> Assignee: John Hewson
> Fix For: 2.0.0
>
> Attachments: EnviroNewsSummer2009.pdf
>
>
> please download a pdf from
> http://www.fujixeroxprinters.com.au/downloads/uploaded/DocuPrint%20Mono%20205%20Series_8c68.pdf
> and Try converting it to images using below command through command prompt :-
> java -jar pdfbox-app-1.6.0.jar PDFToImage abc123.pdf
> It generated images for me but images generated are of very poor quality and
> I can see exceptions also in command prompt.
> Below is the error I get on console :-
> WARNING: java.io.IOException: Not Implemented
> java.io.IOException: Not Implemented
> at
> org.apache.pdfbox.pdfviewer.PageDrawer.SHFill_Axial(PageDrawer.java:4
> 79)
> at org.apache.pdfbox.pdfviewer.PageDrawer.SHFill(PageDrawer.java:412)
> at
> org.apache.pdfbox.util.operator.pagedrawer.SHFill.process(SHFill.java
> :58)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngin
> e.java:551)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngi
> ne.java:274)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngi
> ne.java:251)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.
> java:225)
> at
> org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
> at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
> at
> org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:
> 135)
> at org.apache.pdfbox.PDFToImage.main(PDFToImage.java:231)
> at org.apache.pdfbox.PDFBox.main(PDFBox.java:58)
> Jul 7, 2011 9:51:17 AM org.apache.pdfbox.pdfviewer.PageDrawer SHFill
> INFO: Shading = Shading COSName{Sh0}
> ShadingType: 3
> ColorSpace: DeviceN{ }
> AntiAlias: false
> Coords: COSArray{[COSFloat{0.0}, COSFloat{0.0}, COSFloat{0.0},
> COSFloat{
> 0.0}, COSFloat{0.0}, COSFloat{1.0}]}
> Domain: COSArray{[COSFloat{0.0}, COSFloat{1.0}]}
> Function:
> org.apache.pdfbox.pdmodel.common.function.PDFunctionType3@1b59
> 98f
> Extend: COSArray{[true, true]}
> Raw Value:
> COSDictionary{(COSName{ColorSpace}:COSArray{[COSName{DeviceN},
> COSArray{[COSName
> {Black}]}, COSName{DeviceCMYK}, COSObject{487, 0}, COSObject{485, 0}]})
> (COSName
> {AntiAlias}:false) (COSName{Coords}:COSArray{[COSFloat{0.0}, COSFloat{0.0},
> COSF
> loat{0.0}, COSFloat{0.0}, COSFloat{0.0}, COSFloat{1.0}]})
> (COSName{Function}:COS
> Dictionary{(COSName{FunctionType}:COSInt{3})
> (COSName{Encode}:COSArray{[COSFloat
> {0.0}, COSFloat{1.0}, COSFloat{0.0}, COSFloat{1.0}]})
> (COSName{Domain}:COSArray{
> [COSFloat{0.0}, COSFloat{1.0}]}) (COSName{Functions}:COSArray{[COSObject{621,
> 0}
> , COSObject{620, 0}]}) (COSName{Bounds}:COSArray{[COSFloat{0.840652}]}) })
> (COSN
> ame{Extend}:COSArray{[true, true]}) (COSName{Domain}:COSArray{[COSFloat{0.0},
> CO
> SFloat{1.0}]}) (COSName{ShadingType}:COSInt{3}) }
> Jul 7, 2011 9:51:17 AM org.apache.pdfbox.util.operator.pagedrawer.SHFill
> process
> WARNING: java.io.IOException: Not Implemented
> java.io.IOException: Not Implemented
> at
> org.apache.pdfbox.pdfviewer.PageDrawer.SHFill_Radial(PageDrawer.java:
> 493)
> at org.apache.pdfbox.pdfviewer.PageDrawer.SHFill(PageDrawer.java:415)
> at
> org.apache.pdfbox.util.operator.pagedrawer.SHFill.process(SHFill.java
> :58)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngin
> e.java:551)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngi
> ne.java:274)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngi
> ne.java:251)
> at
> org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java
> :130)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngin
> e.java:551)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngi
> ne.java:274)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngi
> ne.java:251)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.
> java:225)
> at
> org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
> at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
> at
> org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:
> 135)
> at org.apache.pdfbox.PDFToImage.main(PDFToImage.java:231)
> at org.apache.pdfbox.PDFBox.main(PDFBox.java:58)
> Writing: abc1234.jpg
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)