aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-02-04 09:12:26 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-02-04 09:12:26 +0000
commit0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99 (patch)
tree207c8f9b38c27c743e77ce3803e538ab610c0161 /src/main
parent03875a41dd5b065c8ab0c04268ac9371f51a8639 (diff)
downloadpdf-as-3-0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99.tar.gz
pdf-as-3-0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99.tar.bz2
pdf-as-3-0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99.zip
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
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;