aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2015-04-22 10:14:09 +0200
committerChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2015-04-22 10:14:09 +0200
commite41acb6dcca5e05b8a47421e4f1efb13d60e1448 (patch)
treed0a57c36b00fa47d5f3bbd18c024915190ef0fd9
parent78f2fe168d7258af1e40509105ba4ed495606a4e (diff)
downloadpdf-as-4-e41acb6dcca5e05b8a47421e4f1efb13d60e1448.tar.gz
pdf-as-4-e41acb6dcca5e05b8a47421e4f1efb13d60e1448.tar.bz2
pdf-as-4-e41acb6dcca5e05b8a47421e4f1efb13d60e1448.zip
add the Tabs element to page if new page is added
-rw-r--r--pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
index 9b173d66..4538a052 100644
--- a/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
+++ b/pdf-as-pdfbox/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
@@ -549,6 +549,11 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
//setStructureParent
PDAnnotationWidget widg=signatureField.getWidget();
widg.setStructParent(treeindex);
+
+ //add the Tabs /S Element for Tabbing through annots
+ PDPage p = signatureField.getWidget().getPage();
+ p.getCOSDictionary().setName("Tabs", "S");
+ p.getCOSObject().setNeedToBeUpdate(true);
ntndic.setNeedToBeUpdate(true);
sigBlock.getCOSObject().setNeedToBeUpdate(true);