[
https://issues.apache.org/jira/browse/PDFBOX-3542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15607728#comment-15607728
]
Tilman Hausherr edited comment on PDFBOX-3542 at 10/26/16 7:33 AM:
-------------------------------------------------------------------
Loading from a file is best. To save memory, try
{code}
PDDocument.load (file, MemoryUsageSetting.setupTempFileOnly());
{code}
was (Author: tilman):
Loading from a file is best. To save memory, try
{code}
PDDocument.load (new File(), MemoryUsageSetting.setupTempFileOnly());
{code}
> Can PDFBOX use Streams to read PDSignatures from document?
> ----------------------------------------------------------
>
> Key: PDFBOX-3542
> URL: https://issues.apache.org/jira/browse/PDFBOX-3542
> Project: PDFBox
> Issue Type: Wish
> Components: PDModel
> Affects Versions: 2.0.3
> Reporter: Andrea Paternesi
> Priority: Critical
>
> I did not find a way to avoid loading into memory the whole PDDocument to
> read the signatures dictionaries.
> If you have very big PDF files (30MB or more), java gets an Out of Memory
> error.
> Right now i did not find a correct way to load signatures usign stream.
> Can you give any hont?
> Thanks in advance.
> Andrea.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]