From 5746571fe4513b454349be428230300907d86b2b Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 1 Jul 2014 16:39:54 +0200 Subject: Added Preview Image generation of visual Signature block for PDF-Over --- .../src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java index 15227c55..2ac02a18 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java @@ -23,6 +23,9 @@ ******************************************************************************/ package at.gv.egiz.pdfas.lib.api; +import iaik.x509.X509Certificate; + +import java.awt.Image; import java.util.List; import at.gv.egiz.pdfas.common.exceptions.PdfAsException; @@ -84,4 +87,15 @@ public interface PdfAs { * @throws PdfAsException */ public SignResult finishSign(StatusRequest statusRequest) throws PdfAsException; + + /** + * Generates a Image of the visual signatur block as Preview + * + * @param parameter The signing Parameter + * @param cert The certificate to use to build the signature block + * @param resolution the resolution in dpi (dots per inch) (default is 72) + * @return + * @throws PdfAsException + */ + public Image generateVisibleSignaturePreview(SignParameter parameter, X509Certificate cert, int resolution) throws PdfAsException; } -- cgit v1.2.3