0

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.
secador de pelo
  • 687
  • 5
  • 26
  • 1
    possible duplicate of [Enabling LTV for timestamp signature in PDF document](http://stackoverflow.com/questions/27892960/enabling-ltv-for-timestamp-signature-in-pdf-document) – mkl Jan 13 '15 at 19:43

1 Answers1

2

LTV always require a timestamp. If you look at PAdES part 4 in section 4.3:

"Validation of documents without document Time-stamps is outside the scope of this profile."

In other words you can create a document without timestamp but you can't validate it, which kind of defeats the purpose of signing in the first place.

Paulo Soares
  • 1,896
  • 8
  • 21
  • 19
  • Ok, so there is no possibility to have a LTV enabled PDF witouth a second signature? – secador de pelo Jan 13 '15 at 19:43
  • As written in my question, i already tried to add no timestamp and call stamper.close() instead (as supposed by the answer in your link). But then i get the error mentioned in my question. -e- my bad, should have read all the answers. I constructed the stamper the wrong way. – secador de pelo Jan 14 '15 at 09:22