aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-04-12 14:56:05 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-04-12 14:56:05 +0200
commit8998df18e776b4bf17a4c731e0b9c3aad926ca6d (patch)
tree1ae0bbf81c186096b9491ab23c6e2948829c8abf /pdf-as-lib/src/main/java/at/gv/egiz/pdfas
parent98076fc60c31be00584c81d4ce7c2ef29d2c7eb2 (diff)
downloadpdf-as-4-8998df18e776b4bf17a4c731e0b9c3aad926ca6d.tar.gz
pdf-as-4-8998df18e776b4bf17a4c731e0b9c3aad926ca6d.tar.bz2
pdf-as-4-8998df18e776b4bf17a4c731e0b9c3aad926ca6d.zip
Changed automatic positioning to handle annotation partly above the footerline, introduced legacy40.pos option to disable the change
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java1
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java11
2 files changed, 12 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java
index 7a955e3f..27ac9e32 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java
@@ -42,6 +42,7 @@ public interface IConfigurationConstants {
public static final String LEGACY_POSITIONING = ".legacy.pos";
+ public static final String LEGACY_40_POSITIONING = ".legacy40.pos";
public static final String MIN_WIDTH = "minWidth";
public static final String PLACEHOLDER_ID = "placeholder_id";
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
index c71aca7f..6c6f4c7b 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
@@ -94,4 +94,15 @@ public class SignatureProfileConfiguration extends SpecificBaseConfiguration
}
return false;
}
+
+ public boolean getLegacy40Positioning() {
+ String key = SIG_OBJECT + SEPERATOR + profileID + LEGACY_40_POSITIONING;
+ String value = this.configuration.getValue(key);
+ if(value != null) {
+ if(value.equalsIgnoreCase(TRUE)) {
+ return true;
+ }
+ }
+ return false;
+ }
}