[
https://issues.apache.org/jira/browse/PDFBOX-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16368595#comment-16368595
]
Maruan Sahyoun edited comment on PDFBOX-4080 at 2/18/18 4:59 PM:
-----------------------------------------------------------------
[~tilman] I've tested with different buffer sizes but had to set the size to
{{4096}} to not fail our own tests with {{java.io.IOException: Maximum allowed
scratch file memory exceeded.}}. So I decided to not use the limited size
buffer as it seems to risky that more complex content will fail appearance
generation. I'll leave the new method in {{ScratchFile}} though that if one is
really sure that a certain size is not exceeded this method can be used. To me
one of the options is to work with a smaller initial buffer but that's beyond
this ticket I think.
-If you're fine I'll close it for now.-
was (Author: msahyoun):
[~tilman] I've tested with different buffer sizes but had to set the size to
{{4096}} to not fail our own tests with {{java.io.IOException: Maximum allowed
scratch file memory exceeded.}}. So I decided to not use the limited size
buffer as it seems to risky that more complex content will fail appearance
generation. I'll leave the new method in {{ScratchFile}} though that if one is
really sure that a certain size is not exceeded this method can be used. To me
one of the options is to work with a smaller initial buffer but that's beyond
this ticket I think.
If you're fine I'll close it for now.
> 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
>
> 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]