ICEpdf
  1. ICEpdf
  2. PDF-573

Optionl content group visibility not handled correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      ICEpdf 5.0.0 open source release

      Description

      OptionalContentState keeps track of the visibility state as the PDF document is traversed. It considers content visible if the top of the element of the OptionalContent stack is visible. I believe this is not the correct way to handle this. Instead isVisible should return the logical 'and' of the visibility state of all elements in the stack.

      The attached patch resolves this issue. Additionally it resolves a thread-safety issue related to OptionalContentState.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34524 Wed Apr 24 15:50:21 MDT 2013 patrick.corless PDF-573 updated LayersPanel tree building to correctly handle child optional content groups specified with lists.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/utility/layers/LayersPanel.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #34523 Wed Apr 24 15:46:40 MDT 2013 patrick.corless PDF-573 updated init logic to pass invisible state into child optionalContent groups.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/OptionalContent.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: