From 0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99 Mon Sep 17 00:00:00 2001 From: tknall Date: Wed, 4 Feb 2009 09:12:26 +0000 Subject: Removing some TODOs, Example to override profile keyidentifier added to APIDemo git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@324 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../at/knowcenter/wag/egov/egiz/pdf/PDFSignatureObjectIText.java | 6 +----- src/main/java/demo/APIDemo.java | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src/main') 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; -- cgit v1.2.3