aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib
diff options
context:
space:
mode:
authoremusic <emina.music@egiz.gv.at>2019-06-19 13:26:59 +0200
committeremusic <emina.music@egiz.gv.at>2019-06-19 13:26:59 +0200
commit266af04f55476f568377b413f02257a43fae791b (patch)
treeb9ac0fe54974895d1af4c5d2e815666231c58e2b /pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib
parent516334bd777b1e3dcc2f060f12dd7a78be79b0bf (diff)
downloadpdf-as-4-266af04f55476f568377b413f02257a43fae791b.tar.gz
pdf-as-4-266af04f55476f568377b413f02257a43fae791b.tar.bz2
pdf-as-4-266af04f55476f568377b413f02257a43fae791b.zip
pdf-as documentation changes, qr placeholder search on profile level enabled
Diffstat (limited to 'pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib')
-rw-r--r--pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java3
-rw-r--r--pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox2/PADESPDFBOXSigner.java4
2 files changed, 1 insertions, 6 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java
index 8d02d1b3..fc21755f 100644
--- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java
+++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java
@@ -102,8 +102,7 @@ public class ProfileValidator implements ConfigurationValidator{
} catch (Exception e) {
logger.info("Configuration Validation for profile "+id+" failed!");
throw new PdfAsSettingsValidationException("Configuration Validation for profile "+id+" failed!", e);
- }
-
+ }
}
}
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 3cb103a7..326ba74f 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
@@ -67,7 +67,6 @@ import org.apache.pdfbox.pdmodel.common.PDNumberTreeNode;
import org.apache.pdfbox.pdmodel.common.PDRectangle;
import org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureElement;
import org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureTreeRoot;
-import org.apache.pdfbox.pdmodel.encryption.AccessPermission;
import org.apache.pdfbox.pdmodel.graphics.color.PDOutputIntent;
import org.apache.pdfbox.pdmodel.graphics.image.JPEGFactory;
import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject;
@@ -96,7 +95,6 @@ import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
-import java.net.URL;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
@@ -594,8 +592,6 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
byte[] outputDocument = bos.toByteArray();
doc.save(bos);
pdfObject.setSignedDocument(outputDocument);
-
-
}
/*
Check if resulting pdf is PDF-A conform