ICEpdf
  1. ICEpdf
  2. PDF-464

xForm transparency group fails on large bbox

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.3.4
    • Component/s: None
    • Labels:
      None
    • Environment:
      any
    • Workaround Description:
      use the system property org.icepdf.core.disableTransparencyGroup=true

      Description

      The xform transparency support will paint the xForm content stream to a buffered image if the graphics state contains an alpha value less then 1.0. The buffer that is created for this raster needs to be a fixed width and height which is derived from the xform's bbox. For some reason the bbox dimension defined in this document are huge and appear to be a side effect of some encoder that is is dropping in the integer max value instead of a limited size.

      I've added code to only create a raster if the bbox is a reasonable size, otherwise transparency is ignored the xform content stream is painted as per usual.

        Activity

        Patrick Corless created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case [5007000000NJ8Mc]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30517 Thu Aug 16 10:01:56 MDT 2012 patrick.corless PDF-464 updated xobject transparency group creation to check the bbox size before creating the buffer to avoid memory errors. If to large then regular painting is done instead of creating the raster.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/ContentParser.java
        Hide
        Patrick Corless added a comment -

        Added check of the bbox size to make sure the raster can be creating without a problem. Marking as resolved.

        Show
        Patrick Corless added a comment - Added check of the bbox size to make sure the raster can be creating without a problem. Marking as resolved.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30561 Mon Aug 20 17:01:31 MDT 2012 patrick.corless PDF-464 changed the order of the algorithms we use to decode ccittfax images. We now rely on the CCITTFaxDecoder class then back it up with JAI.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFax.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFaxDecoder.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30768 Mon Sep 10 10:41:07 MDT 2012 patrick.corless PDF-464 updated xobject transparency group creation to check the bbox size before creating the buffer to avoid memory errors. If to large then regular painting is done instead of creating the raster.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-4.3.3/icepdf
        Commit graph MODIFY /icepdf/branches/icepdf-4.3.3/icepdf/core/src/org/icepdf/core/util/ContentParser.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30769 Mon Sep 10 10:41:40 MDT 2012 patrick.corless PDF-464 changed the order of the algorithms we use to decode ccittfax images. We now rely on the CCITTFaxDecoder class then back it up with JAI.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-4.3.3/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFax.java
        Commit graph MODIFY /icepdf/branches/icepdf-4.3.3/icepdf
        Commit graph MODIFY /icepdf/branches/icepdf-4.3.3/icepdf/core/src/org/icepdf/core/pobjects/filters/CCITTFaxDecoder.java
        Commit graph MODIFY /icepdf/branches/icepdf-4.3.3/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: