diff options
author | Simon Steiner <ssteiner@apache.org> | 2024-06-04 12:44:45 +0100 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2024-06-04 12:44:45 +0100 |
commit | d8645e1dc5a9c379f00b1786f397d5dcb8b57265 (patch) | |
tree | 8507c71a8293cce58b3180953b595e4c1e7c8dba | |
parent | ac126625d639ed6b60932f559c56fe3a9790d289 (diff) | |
download | xmlgraphics-fop-d8645e1dc5a9c379f00b1786f397d5dcb8b57265.tar.gz xmlgraphics-fop-d8645e1dc5a9c379f00b1786f397d5dcb8b57265.zip |
FOP-3182: Add alt text to PDF signature
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/pdf/PDFSignature.java | 1 | ||||
-rw-r--r-- | fop-core/src/test/java/org/apache/fop/pdf/PDFSigningTestCase.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/pdf/PDFSignature.java b/fop-core/src/main/java/org/apache/fop/pdf/PDFSignature.java index 199d5a9be..5bdf5ebdf 100644 --- a/fop-core/src/main/java/org/apache/fop/pdf/PDFSignature.java +++ b/fop-core/src/main/java/org/apache/fop/pdf/PDFSignature.java @@ -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)); diff --git a/fop-core/src/test/java/org/apache/fop/pdf/PDFSigningTestCase.java b/fop-core/src/test/java/org/apache/fop/pdf/PDFSigningTestCase.java index 993487ed6..fbd11cf79 100644 --- a/fop-core/src/test/java/org/apache/fop/pdf/PDFSigningTestCase.java +++ b/fop-core/src/test/java/org/apache/fop/pdf/PDFSigningTestCase.java @@ -67,6 +67,7 @@ public class PDFSigningTestCase { + " /Subtype /Widget\n" + " /F 132\n" + " /T (Signature1)\n" + + " /TU (Signature1)\n" + " /Rect [0 0 0 0]")); } |