aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-10 11:51:27 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-10 11:51:27 +0000
commit0e78a06d28d4f8496d72574053ed60e7e8105488 (patch)
tree7a57281e2e9f3a648f6f1c3b6feb1b226763bdf8 /src/main/java/at/knowcenter/wag/egov
parentf29acc006ee53212c1ac7730db827bd7fc455966 (diff)
downloadpdf-as-3-0e78a06d28d4f8496d72574053ed60e7e8105488.tar.gz
pdf-as-3-0e78a06d28d4f8496d72574053ed60e7e8105488.tar.bz2
pdf-as-3-0e78a06d28d4f8496d72574053ed60e7e8105488.zip
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@503 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java
index a391c15..6a7c545 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java
@@ -60,8 +60,10 @@ public class AdobeSignatureHelper {
String fieldName = getAdobeFieldName(so.getSignatureTypeDefinition().getType());
// find field num
int nexSigNum = 1;
- while (stamper.getAcroFields().getField(fieldName + nexSigNum) != null) {
+ String finalFieldName = fieldName + " #" + nexSigNum;
+ while (stamper.getAcroFields().getField(finalFieldName) != null) {
nexSigNum++;
+ finalFieldName = fieldName + " #" + nexSigNum;
}
sap.setCrypto(null, null, null, null);
@@ -72,7 +74,7 @@ public class AdobeSignatureHelper {
// the following line marks the sig block as adobe sig
// sap.setVisibleSignature(createRectangleFromTablePos(iui.actualTablePos),
// iui.actualTablePos.page, "PDF-AS-Signatur");
- sap.setVisibleSignature(new Rectangle(0, 0, 0, 0), atp.page, fieldName + " #" + nexSigNum);
+ sap.setVisibleSignature(new Rectangle(0, 0, 0, 0), atp.page, finalFieldName);
String subfilter = "unknown";
if (so != null && so.getKZ() != null) {
subfilter = so.getKZ().toString();