From e41acb6dcca5e05b8a47421e4f1efb13d60e1448 Mon Sep 17 00:00:00 2001 From: Christian Maierhofer Date: Wed, 22 Apr 2015 10:14:09 +0200 Subject: add the Tabs element to page if new page is added --- .../at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.3