Package com.logicaldoc.sign.pdf
Class SignatureImage
- java.lang.Object
-
- com.logicaldoc.sign.pdf.SignatureImage
-
public class SignatureImage extends Object
Represents the image of a digital signature- Since:
- 7.7.2
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SignatureImage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]
create(File file, com.logicaldoc.core.security.User user, Keystore keystore, com.logicaldoc.core.document.Document document, String reason)
Creates the signature image
-
-
-
Method Detail
-
create
public static int[] create(File file, com.logicaldoc.core.security.User user, Keystore keystore, com.logicaldoc.core.document.Document document, String reason) throws IOException
Creates the signature image- Parameters:
file
- the output fileuser
- the signerkeystore
- the keystoredocument
- the document being signedreason
- the reason for signing- Returns:
- width and height of the generated image
- Throws:
IOException
- cannot write the PDF file
-
-