aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java14
1 files changed, 14 insertions, 0 deletions
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;
}