summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-signer/pdf-over-sigpdfas
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:34 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:34 +0000
commit154dca062a6ee705841e8b2c8c5f980e3e8c6483 (patch)
tree90f71085975dc380d50c7e7e199dc9d1a9c935c6 /trunk/pdf-over-signer/pdf-over-sigpdfas
parent47125ff7494802a83ac9e9e4d9b607ad84f59194 (diff)
downloadpdf-over-154dca062a6ee705841e8b2c8c5f980e3e8c6483.tar.gz
pdf-over-154dca062a6ee705841e8b2c8c5f980e3e8c6483.tar.bz2
pdf-over-154dca062a6ee705841e8b2c8c5f980e3e8c6483.zip
whitespace
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12692 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-signer/pdf-over-sigpdfas')
-rw-r--r--trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java78
1 files changed, 39 insertions, 39 deletions
diff --git a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java
index ab44d1b4..8668a3f3 100644
--- a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java
+++ b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java
@@ -117,46 +117,46 @@ public class PdfAsSignatureParameter extends SignatureParameter {
try
{
- PDFASHelper.getPdfAs();
-
- SignatureObject sign_obj = at.knowcenter.wag.egov.egiz.PdfAS
- .createSignatureObjectFromType(PDFASSigner.PROFILE_ID);
-
- sign_obj.fillValues(' ', true, false);
- sign_obj.setKZ(BinarySignator_1_1_0.MY_ID);
-
- float width = getPlaceholderDimension().getWidth();
- float height = getPlaceholderDimension().getHeight();
-
- Table table = sign_obj.getAbstractTable();
-
- table.getStyle().getBgColor();
-
- log.info(table.toString());
-
- float[] heights = this.getTableHeights(table, table.getStyle(), height);
-
- log.info("Width: " + width + " Height: " + height);
- BufferedImage image = new BufferedImage((int) width, (int) height,
- BufferedImage.TYPE_INT_RGB);
- Graphics graphic = image.getGraphics();
-
- graphic.setColor(table.getStyle().getBgColor());
- graphic.fillRect(0, 0, (int) width, (int) height);
-
- graphic.setColor(Color.black);
- graphic.drawRect(0, 0, (int) width, (int) height);
-
- this.drawTable(0, 0, (int) width, (int) height, table,
- table.getStyle(), graphic, heights);
-
- save(image, "jpg");
-
- return image;
+ PDFASHelper.getPdfAs();
+
+ SignatureObject sign_obj = at.knowcenter.wag.egov.egiz.PdfAS
+ .createSignatureObjectFromType(PDFASSigner.PROFILE_ID);
+
+ sign_obj.fillValues(' ', true, false);
+ sign_obj.setKZ(BinarySignator_1_1_0.MY_ID);
+
+ float width = getPlaceholderDimension().getWidth();
+ float height = getPlaceholderDimension().getHeight();
+
+ Table table = sign_obj.getAbstractTable();
+
+ table.getStyle().getBgColor();
+
+ log.info(table.toString());
+
+ float[] heights = this.getTableHeights(table, table.getStyle(), height);
+
+ log.info("Width: " + width + " Height: " + height);
+ BufferedImage image = new BufferedImage((int) width, (int) height,
+ BufferedImage.TYPE_INT_RGB);
+ Graphics graphic = image.getGraphics();
+
+ graphic.setColor(table.getStyle().getBgColor());
+ graphic.fillRect(0, 0, (int) width, (int) height);
+
+ graphic.setColor(Color.black);
+ graphic.drawRect(0, 0, (int) width, (int) height);
+
+ this.drawTable(0, 0, (int) width, (int) height, table,
+ table.getStyle(), graphic, heights);
+
+ save(image, "jpg");
+
+ return image;
}
- catch (Exception ex) {
- log.error("Failed to create Placeholder!", ex);
- throw new SignatureException(ex.getMessage());
+ catch (Exception ex) {
+ log.error("Failed to create Placeholder!", ex);
+ throw new SignatureException(ex.getMessage());
}
}