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

Tilman Hausherr commented on PDFBOX-4554:
-----------------------------------------

So if there ever was a signed PDF with a byterange of [5 9995 11000 1000] (such 
a byte range is technically possible but not a correct way to sign, i.e. it 
wouldn't over the whole document)  then your code would, instead of getting the 
bytes from 5..9999 and 11000..11999 result in \{{getSignedContent()}} returning 
the bytes from 10..10005 and 11005..11999.

> operations taking a byte[] need to allow for offset and length too
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-4554
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4554
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: Jason Pyeron
>            Priority: Major
>
> Without this, massive amounts of memory must be copied/allocated to "trim" 
> byte[].
> See forthcoming pull request.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to