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

John Hewson commented on PDFBOX-1094:
-------------------------------------

Looks like this is an IOException which was being silently ignored previously. 
It appears to be a parsing error, in the logs I get:

{code}
Dec 31, 2014 3:52:15 PM org.apache.pdfbox.pdfparser.NonSequentialPDFParser 
checkXrefOffsets
SEVERE: Can't find the object 2 65536 (origin offset 0)
Dec 31, 2014 3:52:15 PM org.apache.pdfbox.pdfparser.BaseParser parseCOSArray
WARNING: Corrupt object reference at offset 226791
Dec 31, 2014 3:52:15 PM org.apache.pdfbox.pdfparser.BaseParser 
parseCOSDictionary
WARNING: Invalid dictionary, found: 'e' but expected: '/'
Dec 31, 2014 3:52:17 PM 
org.apache.pdfbox.pdmodel.graphics.shading.AxialShadingPaint createContext
{code}

Which is triggered by shading Sh18. The exceptions is thrown in relation to 
object [189 0] which is the 3rd element in the array of functions an according 
to AR's preflight should look like this:

!preflight.png!

However, we're parsing object [189 0] as:

{code}
COSName{Function}" -> "COSObject{190, 0}"
"COSName{Coords}" -> "COSArray{[COSInt{0}, COSInt{0}, COSInt{1}, COSInt{0}]}"
"COSName{BBox}" -> "COSArray{[COSFloat{-0.000015259}, COSFloat{-0.250916}, 
COSFloat{0.}]}
{code}

Which appears to be from object [181 0]... it's not the right object at all.

P.S. The NPE is a separate bug in the error handling which I'll fix.

> Pattern colorspace support
> --------------------------
>
>                 Key: PDFBOX-1094
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1094
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 1.6.0, 2.0.0
>            Reporter: Andreas Lehmkühler
>            Priority: Blocker
>             Fix For: 2.0.0
>
>         Attachments: ColoredTilingPaint.patch, PATTYP1.pdf, PATTYP2.pdf, 
> PDF32000_2008_pg737.pdf, PDFBOX-1094-065514-XStep32767.pdf, 
> PDFBOX-1094-094730.pdf, PDFBOX-1094-096213-p18.pdf, 
> PDFBOX-1094-118358-Step-32767.pdf, PDFBOX-1094-PDFBOX-269.pdf, 
> PDFBOX-1094-tiling_pattern.pdf-1-broken-tiles-with-ceil.png, 
> PDFBOX-1861-tracemonkey13.png, PDFStreamEngine.patch, PageDrawer.patch, 
> _pdfbox-1094-tiling_pattern.pdf-1-blurry.png, bugzilla8677511.jpg, 
> gs-bugzilla688728.pdf, gs-bugzilla691715.pdf, gs-bugzilla692152.pdf, 
> gs-bugzilla692503.ai, gs-bugzilla692747.pdf, gs-bugzilla693653.pdf, 
> gs-bugzilla694385.pdf, jagpdf_doc_patterns.pdf, 
> jagpdf_doc_patterns.pdf-1.png, pdfbox-1094-pdf32000_2008_pg737.pdf-1.png, 
> pdfbox-1094-pdf32000_2008_pg737.pdf-1.png, pdfbox-1094-pdfbox-269.pdf-2.png, 
> pdfbox-1094-tiling_pattern.pdf-1.png, pdfbox-1094-tiling_pattern.pdf-1.png, 
> pdfbox-1094-tiling_pattern.pdf-1.png, pdfbox-1861-tracemonkey.pdf-13.png, 
> pdfbox-1861-tracemonkey.pdf-13.png, preflight.png, tiling_pattern.pdf, 
> v2_tiling_patterns_v2.patch
>
>
> PDFBox doesn't support PDPattern colorspaces



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

Reply via email to