You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Alexey Gavrilov (JIRA)" <ji...@apache.org> on 2013/01/25 08:27:13 UTC

[jira] [Updated] (PDFBOX-1475) Exception thrown during rendering page if /DecodeParms specified indirectly (like [9 0 R]) in XObject/Image

     [ https://issues.apache.org/jira/browse/PDFBOX-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Gavrilov updated PDFBOX-1475:
------------------------------------

    Attachment: PDCcitt.java
                CCITTFaxDecodeFilter.java

Dear Andreas,

Finally I received permission for open source contribution.

Let me attach to the message the corrections I made. They are little bit different from yours.

Thank you for your help.

Regards,
Alexey


                
> Exception thrown during rendering page if /DecodeParms specified indirectly (like [9 0 R]) in XObject/Image
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1475
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1475
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.7.0, 1.7.1
>         Environment: Not important
>            Reporter: Alexey Gavrilov
>            Assignee: Andreas Lehmkühler
>              Labels: DecodeParms, Image, XObject
>             Fix For: 1.8.0
>
>         Attachments: CCITTFaxDecodeFilter.java, Exception info.jpg, PDCcitt.java, TC11.pdf
>
>
> PROBLEM:
> Exception is thrown during rendering TC11.pdf. Empty image is generated.
> TEST:
> java -jar pdfbox-app-1.7.1.jar PDFToImage -resolution 300 TC11.pdf
> DETAILS:
> There are 2 objects in TC11.pdf.
> . . .
> Object 7:
> <<
> 	
> 	/Type /XObject
> 	/Subtype /Image
> 	/Width 2496
> 	/Height 3504
> 	/BitsPerComponent 1
> 	/ColorSpace /DeviceGray
> 	/Filter [/CCITTFaxDecode]
> 	/DecodeParms [9 0 R]
> 	/Length 10 0 R
> >>
> . . .
> Object 9:
> <<
> 	
> 	/Columns 2496
> 	/Rows 3504
> 	/K -1
> 	/BlackIs1 false
> >>
> . . .
> when rendering the page exception is thrown as the library doesn't resolve indirect reference to object 9 for /DecodeParms.
> RESOLUTION:
> I can specify what is to be changed in CCITTFaxDecoderFilter.java and PDCcitt.java to resolve the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira