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

Tilman Hausherr edited comment on PDFBOX-4297 at 10/5/20, 5:15 PM:
-------------------------------------------------------------------

{code}
COSString contents = (COSString) 
sig.getCOSObject().getDictionaryObject(COSName.CONTENTS);
byte [] ba = contents.getBytes();
{code}
But I guess you'd like a direct PDSignature method. I have no idea why the two 
methods we are offering read the whole file.


was (Author: tilman):
{\{code}}
COSString contents = (COSString) 
sig.getCOSObject().getDictionaryObject(COSName.CONTENTS);
byte [] ba = contents.getBytes();
{\{code}}
But I guess you'd like a direct PDSignature method. I have no idea why the two 
methods we are offering read the whole file.

> 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