Am 23.05.2022 um 14:56 schrieb Gilad Denneboom:
Hi all,

I have a signed document where the Signature field's value contains a
Metadata dictionary with some info in it. I'm trying to reproduce this
using PDFBox but am having a hard time doing so.
This is what the original structure of the file looks like:
https://imgur.com/yHE3r7j

I've used CreateVisibleSignature as my base, and manipulated its
findExistingSignature method to create the Metadata dictionary and add it
to the field's value, but I don't manage to set the actual contents of the
object (seen in the right-hand side of the screenshot above). This is the
code I added:
https://imgur.com/gC9SZwk

call COSStream.createOutputStream() and then write there and close it.

Tilman



The result is nearly identical to the original, just without any actual
value under the Metadata object:
https://imgur.com/86KDOC2

It seems like I'm missing something quite basic here, so any advice would
be appreciated!



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

Reply via email to