aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-07-01 16:39:54 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-07-01 16:40:38 +0200
commit5746571fe4513b454349be428230300907d86b2b (patch)
tree7a232cfb49f268c4952f462a4741b740c488ff10 /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api
parent19b27e99968233a285965daba6cc1e19a7406ce6 (diff)
downloadpdf-as-4-5746571fe4513b454349be428230300907d86b2b.tar.gz
pdf-as-4-5746571fe4513b454349be428230300907d86b2b.tar.bz2
pdf-as-4-5746571fe4513b454349be428230300907d86b2b.zip
Added Preview Image generation of visual Signature block for PDF-Over
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;
}