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

        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.
        Hide
        Patrick Corless added a comment -

        Marking as resolved.

        Show
        Patrick Corless added a comment - Marking as resolved.
        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.
        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 -

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: