aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv
diff options
context:
space:
mode:
authorpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-02-14 15:33:56 +0000
committerpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-02-14 15:33:56 +0000
commit57fb93a36d62fe5c1e63292e08b3e4a578688c54 (patch)
tree944df4397ec4e82d597d54efc08165e753e9f0ca /src/main/java/at/gv
parent7549ac5bb6f322f9d962f1f0cb534e05844d5338 (diff)
downloadpdf-as-3-57fb93a36d62fe5c1e63292e08b3e4a578688c54.tar.gz
pdf-as-3-57fb93a36d62fe5c1e63292e08b3e4a578688c54.tar.bz2
pdf-as-3-57fb93a36d62fe5c1e63292e08b3e4a578688c54.zip
Fine adjustment of positioning
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@752 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java b/src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java
index 76a4dec..89d8497 100644
--- a/src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java
+++ b/src/main/java/at/gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java
@@ -25,7 +25,6 @@ import org.apache.pdfbox.util.PDFStreamEngine;
import org.apache.pdfbox.util.ResourceLoader;
import at.gv.egiz.pdfas.api.commons.Constants;
-import at.gv.egiz.pdfas.api.sign.SignParameters;
import at.gv.egiz.pdfas.exceptions.ErrorCode;
import at.gv.egiz.pdfas.exceptions.framework.PlaceholderExtractionException;
import at.gv.egiz.pdfas.utils.PDFASUtils;
@@ -205,9 +204,9 @@ public class SignaturePlaceholderExtractor extends PDFStreamEngine {
Matrix unrotatedCTM = ctm.multiply( rotationInverseMatrix );
- float x = unrotatedCTM.getXPosition() - 1F;
- float y = unrotatedCTM.getYPosition() + unrotatedCTM.getYScale() + 1F;
- float w = unrotatedCTM.getXScale() + 2F;
+ float x = unrotatedCTM.getXPosition();
+ float y = unrotatedCTM.getYPosition() + unrotatedCTM.getYScale();
+ float w = unrotatedCTM.getXScale();
String posString = "p:" + currentPage + ";x:" + x + ";y:" + y + ";w:" + w;
try