[ 
https://issues.apache.org/jira/browse/PDFBOX-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16340638#comment-16340638
 ] 

Maruan Sahyoun commented on PDFBOX-4080:
----------------------------------------

OK - I've added the parameter but for now haven't implemented it within the 
handlers to pass that on. What I would like is to come up with a solution where 
we don't have to pass this around if doable as I find it very unintuitive that 
this is needed at that level but I haven't looked into the whole 
{{ScratchFile}} mechanism up to know. Usage of the "memory model" should be 
transparent to the user after setting that with {{PDDocument.load()}} IMHO.

I'd like to get rid of that parameter.

Ideas?

> 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: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to