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

Tilman Hausherr commented on PDFBOX-4297:
-----------------------------------------

his is sample code, so nothing prevents you to write your own. I assume you 
mean the "buf" parameter. This is used only once, to calculate the digest. To 
calculate the digest from a stream, see here
https://stackoverflow.com/a/304350/535646

We could change the code of ShowSignature, but then we'd probably get criticism 
for being slow.

About the missing method, did you try to implement it yourself? Yes maybe we 
could do that, but I think getSignedContentAsStream() would be better.


> Allow to space efficiently analyse large PDFs
> ---------------------------------------------
>
>                 Key: PDFBOX-4297
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4297
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>            Reporter: Ralf Hauser
>            Priority: Major
>
> Assume you get a 300+MB large pdf and need to know
> 1) the file names of embedded files if any
> 2) whether it is encrypted (symmetric or asymmetric)
> 3) certification level (and whether it is signed)
> This should not use more than 5 MB (extra) memory
>  
> P.S.: seems to an exampe of https://pdfbox.apache.org/ideas.html  "Handle 
> large PDF files"
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to