You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/10/25 16:37:59 UTC
[jira] [Commented] (PDFBOX-3542) Can PDFBOX use Streams to read
PDSignatures from document?
[ https://issues.apache.org/jira/browse/PDFBOX-3542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15605793#comment-15605793 ]
Tilman Hausherr commented on PDFBOX-3542:
-----------------------------------------
How did you load the PDF? From a file or from a stream? Have you tried using a higher -Xmx value? Or using a scatch file (see the PDDocument.load() methods)? I tested signing a 70MB file and had no trouble.
Could you please retest with the 2.0.4 snapshot?
I looked at the source code, and I don't see that PDFBox is loading the entire PDF into memory for signing. (But it is loading the PDF structures in memory, which is why I mentioned a scratch file)
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org