pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkuehler <andr...@lehmi.de>
Subject Re: Sign PDF Using ByteArrayInputStream
Date Sun, 15 Jan 2012 18:52:49 GMT

Am 03.01.2012 12:36, schrieb Isaias Barroso:
> Dear all,
> Currently the process to sign a PDF works fine if we use
> PDDocument.addSignature  and PDDocument.saveIncremental, but
> saveIncremental just accept a FileInputStream, does anybody knows another
> way, for exemple using a ByteArrayInputStream instead FileInputStream?
> Using a ByteArrayInputStream would let the process more flexible, I could
> for example get a content from a Web Service and sign the content without
> to save it on disk before sign the document.
That shouldn't be a big deal. An InputStream should be used a parameter type, so 
that one can choose depending on the situation the most suitable one.

> If a solution for this don't already exists or planned I'll try to make
> changes on source code.
Please create an issue on JIRA [1], so that this idea can't get lost.

> Best Regards

Andreas Lehmkühler

View raw message