From 57fb93a36d62fe5c1e63292e08b3e4a578688c54 Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 14 Feb 2011 15:33:56 +0000 Subject: Fine adjustment of positioning git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@752 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../gv/egiz/pdfas/placeholder/SignaturePlaceholderExtractor.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3