aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib
diff options
context:
space:
mode:
authorChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2016-06-13 13:17:30 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-08-17 16:46:09 +0200
commit06705460473fe1d911d29f264b9ac505d5111fbf (patch)
treecda49ac87432643f1a9a0a4b03df4e7c4de02017 /pdf-as-lib
parent4a0feb2e69b86cd4a7c574de49907af2620f5e23 (diff)
downloadpdf-as-4-06705460473fe1d911d29f264b9ac505d5111fbf.tar.gz
pdf-as-4-06705460473fe1d911d29f264b9ac505d5111fbf.tar.bz2
pdf-as-4-06705460473fe1d911d29f264b9ac505d5111fbf.zip
Modified sig-block positioning to image-based
Diffstat (limited to 'pdf-as-lib')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
index d47b05fa..cd0a4699 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
@@ -26,6 +26,8 @@ package at.gv.egiz.pdfas.lib.api;
import iaik.security.ec.provider.ECCelerate;
import iaik.security.provider.IAIK;
+import java.awt.Graphics2D;
+import java.awt.image.BufferedImage;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
@@ -175,6 +177,7 @@ public class PdfAsFactory implements IConfigurationConstants {
synchronized (init_mutex) {
if (!initialized) {
initialized = true;
+ registerGraphicsEnvironment();
registerSecurityProvider(configuration);
teeInformation("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
teeInformation("+ PDF-AS: " + getVersion());
@@ -188,6 +191,11 @@ public class PdfAsFactory implements IConfigurationConstants {
}
}
}
+
+ private static void registerGraphicsEnvironment(){
+ BufferedImage bim = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);
+ Graphics2D graphics = bim.createGraphics();
+ }
/**
* Create a new instance of PDF-AS