aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java6
-rw-r--r--src/main/java/demo/APIDemo.java4
2 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java
index 0467bad..78aafbf 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java
@@ -261,9 +261,6 @@ public class PDFSignatureObjectIText implements PDFSignatureObject
* @throws PDFDocumentException
*/
private Font getCellTrueTypeFont(String fontString) throws PDFDocumentException {
- // TODO[tknall-PDF/A]: Remove hardcoded TTF. Impement TTF usage based on configuration.
- // logger_.warn("TrueType Fonts are activated. This is only for testing purposes. Deactivate in final release!");
-
float fontSize=8;
String fontName = fontString.replaceFirst("TTF:", "");
String[] split = fontName.split(",");
@@ -349,8 +346,7 @@ public class PDFSignatureObjectIText implements PDFSignatureObject
font_string = cell_style.getValueFont();
}
- // TODO[tknall-PDF/A]: Deactivate temporary TTF test.
- logger_.debug("using cell font:"+font_string);
+ logger_.debug("using cell font: "+font_string);
Font cell_font;
if(font_string.startsWith("TTF:"))
diff --git a/src/main/java/demo/APIDemo.java b/src/main/java/demo/APIDemo.java
index c2a989e..6e6aebd 100644
--- a/src/main/java/demo/APIDemo.java
+++ b/src/main/java/demo/APIDemo.java
@@ -149,6 +149,8 @@ public final class APIDemo {
signParameters.setSignatureDevice(signatureDevice);
signParameters.setSignatureProfileId(signatureProfile);
signParameters.setSignaturePositioning(signaturePos);
+ // override key identifier from profile
+// signParameters.setSignatureKeyIdentifier("KG_allgemein");
// sign
System.out.println("Signing...");
@@ -213,7 +215,7 @@ public final class APIDemo {
File configdir = new File("./work");
File unsignedFile = new File("./test-files/blindtext.pdf");
- String signatureMode = Constants.SIGNATURE_TYPE_BINARY;
+ String signatureMode = Constants.SIGNATURE_TYPE_TEXTUAL;
String signatureDevice = Constants.SIGNATURE_DEVICE_MOA;
String signatureProfile = "SIGNATURBLOCK_DE";
SignaturePositioning signaturePos = null;