xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rasmus Rohde (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FOP-2876) Invoking PDFRoot#setPageMode ends up keeping the document in memory
Date Mon, 22 Jul 2019 14:04:00 GMT
Rasmus Rohde created FOP-2876:
---------------------------------

             Summary: Invoking PDFRoot#setPageMode ends up keeping the document in memory
                 Key: FOP-2876
                 URL: https://issues.apache.org/jira/browse/FOP-2876
             Project: FOP
          Issue Type: Improvement
    Affects Versions: 2.3
            Reporter: Rasmus Rohde


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.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message