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

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

Even if I'd replace just the {color:#333333}ByteArrayInputStream{color}() with 
the other constructor (and pass 0 and buf.length), it would be the same because 
of the similarities between the 1 argument and the 3 argument constructor.

Verifying the signatures in the historical PDFs can be done without cutting off 
the complete PDF, the byte range is still valid. That's how it is done in the 
ShowSignature example in the source code download.

> 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