Hi,
I’m using aspose pdf for java 21.4 to sign documents.
Although I enable to use LTV, the generated file shows that LTV is not enabled.
This is my code:
Document doc = new Document("/Users/lmunoz/Desktop/pruebas/docprueba.pdf");
PdfFileSignature signature = new PdfFileSignature(doc);
PKCS7 pkcs = new PKCS7("/apps/aspose/Direccion.pfx", "XXXXXXX");
pkcs.setUseLtv(true);
Rectangle rect = new Rectangle(100, 600, 400, 100);
signature.sign(1, true, rect, pkcs);
signature.save("/apps/aspose/Digitally Signed PDF.pdf");
Document doc2 = new Document("/apps/aspose/Digitally Signed PDF.pdf");
PdfFileSignature signature2 = new PdfFileSignature(doc2);
System.out.println("LTV enabled: " + signature2.isLtvEnabled());
The system.out checks “true” but if I open the pdf, it is not enabled, like I show you in the image. SignedLTVDisabled.png (8.0 KB)
How can I get LTV enabled?
Thanks.