[
https://issues.apache.org/jira/browse/PDFBOX-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16368203#comment-16368203
]
Maruan Sahyoun commented on PDFBOX-4080:
----------------------------------------
[~tilman] I looked at various ways to improve that but all ends up being a lot
of ugly code (IMHO) with passing {{ScratchFile}} or {{COSDocument}} all around.
In addition working with {{COSStream}} is currently very complicated as it's
not easy to close it ...
So my proposal is to move that to after 3.0 and remove the ScratchFile
parameter so we can introduce a better API after having tackled a clean
approach - WDYT?
> Improve memory consumption of PDAbstractAppearanceHandler
> ---------------------------------------------------------
>
> Key: PDFBOX-4080
> URL: https://issues.apache.org/jira/browse/PDFBOX-4080
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 3.0.0 PDFBox
> Reporter: Maruan Sahyoun
> Assignee: Maruan Sahyoun
> Priority: Major
> Labels: Annotations
> Fix For: 3.0.0 PDFBox
>
>
> PDAbstractAppearanceHandler calls new COSStream(), this has a huge memory
> footprint (PDFBOX-3868 and PDFBOX-3852). We'd need to find a way to pass the
> document, or the document scratch file, or there will be trouble for files
> with many annotations, e.g. a long scientific document with many footnotes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]