ICEpdf
  1. ICEpdf
  2. PDF-1206

Empty pages are not marked as initialized

    Details

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

      Description

      A customer has a document that has blank pages inserted between pages that lack any pdf content. When a page is initialized we do not set the initialized flag when there is not content. This appears to be a bug.

      When painting a page we return immediately if the page is not initialized and don't paint the background page colour. This appear also to be a short site. The viewer RI always draws a white background before painting so this issue doesn't show up very often.

      It's very easy fix and will be in the next release. The only work aorund at this time would be to draw a white rectangle before writing the PDF content to the image buffer. The black pixels are actually the result of no data being written.

        Activity

        Patrick Corless created issue -
        Judy Guglielmin made changes -
        Field Original Value New Value
        Support Case References Support Case 14235:- https://icesoft.my.salesforce.com/5000g00001nZP96
        Patrick Corless made changes -
        Fix Version/s 6.3 [ 13093 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52191 Thu Jan 04 10:34:00 MST 2018 patrick.corless PDF-1206 added init flag to empty content sets. This will fix an issue
        where an contentless page will output black when doing page captures.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/Page.java
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: