From 08911a1b4f7bc825841f99053cf98af795e506f2 Mon Sep 17 00:00:00 2001 From: emusic Date: Wed, 21 Mar 2018 17:56:48 +0100 Subject: enabled placeholder serach for pdf-as web --- .../pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'pdf-as-pdfbox-2/src/main/java') diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java index 0398e75b..5db09ea1 100644 --- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java +++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java @@ -299,7 +299,6 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants { // handle rotated page int targetPageNumber = positioningInstruction.getPage(); logger.debug("Target Page: " + targetPageNumber); - //umjesto -1 da probamo -2 PDPage targetPage = doc.getPages().get(targetPageNumber - 1); int rot = targetPage.getRotation(); logger.debug("Page rotation: " + rot); @@ -589,8 +588,6 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants { try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); - /*/ Check if document should be protected*/ - synchronized (doc) { doc.saveIncremental(bos); byte[] outputDocument = bos.toByteArray(); @@ -606,10 +603,6 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants { runPDFAPreflight(new ByteArrayDataSource(pdfObject.getSignedDocument())); } - - /*Check if doc has to be protected*/ - - } catch (IOException e1) { e1.printStackTrace(); } @@ -641,13 +634,6 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants { logger.debug("Signature done!"); } - - - AccessPermission ap_new = doc.getCurrentAccessPermission(); - Boolean canextract = ap_new.canExtractContent(); - Boolean bool = ap_new.isReadOnly(); - String test = ""; - } /** -- cgit v1.2.3