ICEpdf
  1. ICEpdf
  2. PDF-330

Failure to set initial graphic state clip

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      any

      Description

      This issue was reported in the forms. The submitted sample file is very unusual in that there is second content stream created with no content, well actually just a comment "%DSBlank". This lack of content is causing an null pointer when this content stream is attempted to be painted.

      There is a very simple fix which get the PDF in question rendering. I'll atach a patch file file and check in the fix to the trunk.
      1. PDF-330.patch
        0.9 kB
        Patrick Corless

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #25406 Tue Sep 06 11:46:04 MDT 2011 patrick.corless PDF-330 fix for empty content stream parsing which results in a null pointer when creating the initial content stream clip.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/Shapes.java
        Patrick Corless created issue -
        Hide
        Patrick Corless added a comment -

        Patch file for correcting Shapes.java null clip issue with empty content stream.

        Show
        Patrick Corless added a comment - Patch file for correcting Shapes.java null clip issue with empty content stream.
        Patrick Corless made changes -
        Field Original Value New Value
        Attachment PDF-330.patch [ 13498 ]
        Hide
        Patrick Corless added a comment -

        Applied simple patch to address clip issue.

        Show
        Patrick Corless added a comment - Applied simple patch to address clip issue.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Salesforce Case []
        Fix Version/s 4.2.3 [ 10293 ]
        Fix Version/s 4.3 [ 10266 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26319 Thu Nov 10 07:10:35 MST 2011 patrick.corless PDF-330 added check for the presence and correction of the initial graphics state clip.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-4.2.2/icepdf/core/src/org/icepdf/core/pobjects/graphics/Shapes.java
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: