aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-11-25 12:48:15 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-11-25 12:48:15 +0000
commitea60aae139c666c610c1af5cfd0b616d3f4a535c (patch)
treee9e1556e38d1a68a90185ed7d3074f0e2dccec04 /src/main/java/at/knowcenter/wag
parent1774241bd1e38eb789609ba443d48f1122fe4819 (diff)
downloadpdf-as-3-ea60aae139c666c610c1af5cfd0b616d3f4a535c.tar.gz
pdf-as-3-ea60aae139c666c610c1af5cfd0b616d3f4a535c.tar.bz2
pdf-as-3-ea60aae139c666c610c1af5cfd0b616d3f4a535c.zip
Preparation for multilingual support for web application.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@312 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter/wag')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java
index 113f13e..2ffc7b2 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java
@@ -96,7 +96,7 @@ public abstract class PdfAS
* The current version of the pdf-as library. This version string is logged on every invocation
* of the api or the web application.
*/
- public static final String PDFAS_VERSION = "3.0.7-20080923";
+ public static final String PDFAS_VERSION = "3.0.8-20081119";
/**
* The key of the strict mode setting.
@@ -1235,8 +1235,17 @@ public abstract class PdfAS
Rectangle psize = reader.getPageSizeWithRotation(page);
int page_rotation = reader.getPageRotation(page);
- float page_width = psize.width();
- float page_height = psize.height();
+// [tknall] for iText 1.x.x:
+// float page_width = psize.width();
+// float page_height = psize.height();
+
+// [tknall] for iText 2.x.x:
+// float page_width = psize.getWidth();
+// float page_height = psize.getHeight();
+
+ float page_width = psize.getWidth();
+ float page_height = psize.getHeight();
+
// now we can calculate x-position
float pre_pos_x = SIGNATURE_BORDER / 2;
if (!pos.isXauto())