]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-3182: Add alt text to PDF signature
authorSimon Steiner <ssteiner@apache.org>
Tue, 4 Jun 2024 11:44:45 +0000 (12:44 +0100)
committerSimon Steiner <ssteiner@apache.org>
Tue, 4 Jun 2024 11:44:45 +0000 (12:44 +0100)
fop-core/src/main/java/org/apache/fop/pdf/PDFSignature.java
fop-core/src/test/java/org/apache/fop/pdf/PDFSigningTestCase.java

index 199d5a9be2e6c4ed58b9f281ecf25aa812bf70b9..5bdf5ebdff0ff720ecbda2c19df4778b7f868b21 100644 (file)
@@ -141,6 +141,7 @@ public class PDFSignature {
             put("Subtype", new PDFName("Widget"));
             put("F", 132);
             put("T", "Signature1");
+            put("TU", "Signature1");
             put("Rect", new PDFRectangle(0, 0, 0, 0));
             put("V", perms.docMDP);
             put("P", new PDFReference(page));
index 993487ed66db8b0f37b912b113351ed8cb78325c..fbd11cf79b0db52e469176f0cf44857cadcd021b 100644 (file)
@@ -67,6 +67,7 @@ public class PDFSigningTestCase {
                 + "  /Subtype /Widget\n"
                 + "  /F 132\n"
                 + "  /T (Signature1)\n"
+                + "  /TU (Signature1)\n"
                 + "  /Rect [0 0 0 0]"));
     }