ICEpdf
  1. ICEpdf
  2. PDF-844

PDF Portfolio file not rendering

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.1
    • Fix Version/s: 5.1.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      With the provided PDF portfolio file, none of the images or inner PDF files are rendered. No error is seen in the logs when going through the viewer. When using the PortfolioCapture.java sample, the embeddedFilesNameTree.getRoot().getNamesAndValues() is null.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44562 Thu Apr 23 11:27:40 MDT 2015 patrick.corless PDF-844 further touch ups to key generation.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/ICCBased.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44556 Thu Apr 23 10:00:27 MDT 2015 patrick.corless PDF-844 touched up a colour space key generation issue for 1 comonent colours.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/ICCBased.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44488 Mon Apr 13 14:03:08 MDT 2015 patrick.corless PDF-844 touched up a colour space key generation issue for 1 comonent colours.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/ICCBased.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Patrick Corless added a comment -

        Fixed have been checked in on the 5.0.1 branch and trunk.

        Show
        Patrick Corless added a comment - Fixed have been checked in on the 5.0.1 branch and trunk.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44020 Thu Feb 05 16:24:54 MST 2015 patrick.corless PDF-844 reworked how we build names trees to fix an error when loading a Portfolio file.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/NameNode.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/NameTree.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/CollectionDocumentView.java
        Commit graph MODIFY /icepdf/trunk/icepdf/examples/capture/PortfolioCapture.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44019 Thu Feb 05 16:23:20 MST 2015 patrick.corless PDF-844 reworked how we build names trees to fix an error when loading a Portfolio file.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/NameTree.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/examples/capture/PortfolioCapture.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/viewer/src/org/icepdf/ri/common/views/CollectionDocumentView.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/NameNode.java
        Hide
        Patrick Corless added a comment -

        I've reworked how the trees are created and with a little luck will address this issue for good. The PortfolioCapture.java example has been updated slightly

        When getting the filePairs var:

        List filePairs = embeddedFilesNameTree.getRoot().getNamesAndValues();

        The call should now be

        List filePairs = embeddedFilesNameTree.getNamesAndValues();

        This will insure that all the tree's notes are looked at and a full list of the all names and values are returned.

        Show
        Patrick Corless added a comment - I've reworked how the trees are created and with a little luck will address this issue for good. The PortfolioCapture.java example has been updated slightly When getting the filePairs var: List filePairs = embeddedFilesNameTree.getRoot().getNamesAndValues(); The call should now be List filePairs = embeddedFilesNameTree.getNamesAndValues(); This will insure that all the tree's notes are looked at and a full list of the all names and values are returned.
        Hide
        Patrick Corless added a comment -

        A second file has come in via support that exhibits a similar problem. I've dug into the specification in more detail and this issue is related to how we are building the name tree nodes that make up the name tree. Our implementation is code for just a Names tree where the two samples we now have use the limits/kids and limits/names structure.

        Show
        Patrick Corless added a comment - A second file has come in via support that exhibits a similar problem. I've dug into the specification in more detail and this issue is related to how we are building the name tree nodes that make up the name tree. Our implementation is code for just a Names tree where the two samples we now have use the limits/kids and limits/names structure.
        Judy Guglielmin made changes -
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Patrick Corless added a comment -

        Marking as resolved.

        Show
        Patrick Corless added a comment - Marking as resolved.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43906 Wed Jan 14 14:29:10 MST 2015 patrick.corless PDF-844 added support for a one off malformed name tree node parsing.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/NameNode.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #43905 Wed Jan 14 14:28:50 MST 2015 patrick.corless PDF-844 added support for a one off malformed name tree node parsing.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/NameNode.java
        Hide
        Patrick Corless added a comment -

        The name tree associated with this file wasn't setup in a standard format. I've added some code to sniff out this corner case and adjust the data structure building. The file now renders correctly.

        Show
        Patrick Corless added a comment - The name tree associated with this file wasn't setup in a standard format. I've added some code to sniff out this corner case and adjust the data structure building. The file now renders correctly.
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.1.2 [ 11872 ]
        Arran Mccullough created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: