After several days of work, i got my PDFs LTV enabled (yay!).
With the adobe pdf reader i can see a second revision/signature now. As i understand, that's because of the signed timestamp in the DSS.
As i have read on several sites, to enable LTV using DSS, a second timestamp isn't needed.
I'm using the addLtv method described in the iText whitepaper
The timestamp is added by this line of code:
LtvTimestamp.timestamp(appearance, tsa, null);
But if i remove this line, my output PDF is empty.
How can i create a LTV enabled PDF without a timestamped DSS?
-e-
if i just do
stamper.close();
reader.close();
i get this error:
com.itextpdf.text.DocumentException: Signature defined. Must be closed in PdfSignatureAppearance.