From d8645e1dc5a9c379f00b1786f397d5dcb8b57265 Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Tue, 4 Jun 2024 12:44:45 +0100 Subject: FOP-3182: Add alt text to PDF signature --- fop-core/src/main/java/org/apache/fop/pdf/PDFSignature.java | 1 + fop-core/src/test/java/org/apache/fop/pdf/PDFSigningTestCase.java | 1 + 2 files changed, 2 insertions(+) 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]")); } -- cgit v1.2.3