Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2876

Invoking PDFRoot#setPageMode ends up keeping the document in memory

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      A call to PDFRoot#setPageMode will end up putting one of the static entries in the PAGEMODE_NAMES list into the PDFDictionary. As the entry is an instance of PDFObject the parent of the page mode will be set to the PDFRoot, and thus the page mode now keeps a reference to the PDFRoot.

      It seems to me that PAGEMODE_NAMES should not be declared static to avoid keeping the latest PDFRoot in memory.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rohde Rasmus Rohde
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: