public class SignatureOptions
extends java.lang.Object
Constructor | Description |
---|---|
SignatureOptions() |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Closes the visual signature COSDocument, if any.
|
int |
getPage() |
Get the 1-based page number.
|
int |
getPreferedSignatureSize() |
Get the preferred size of the signature.
|
COSDocument |
getVisualSignature() |
Get the visual signature.
|
void |
setPage(int pageNo) |
Set the 1-based page number.
|
void |
setPreferedSignatureSize(int size) |
Set the preferred size of the signature.
|
void |
setVisualSignature(java.io.InputStream is) |
Reads the visual signature from the given input stream.
|
void |
setVisualSignature(PDVisibleSigProperties visSignatureProperties) |
Reads the visual signature from the given visual signature properties
|
public void setPage(int pageNo)
pageNo
- the page numberpublic int getPage()
public void setVisualSignature(java.io.InputStream is) throws java.io.IOException
is
- the input stream containing the visual signaturejava.io.IOException
- when something went wrong during parsingpublic void setVisualSignature(PDVisibleSigProperties visSignatureProperties) throws java.io.IOException
visSignatureProperties
- the PDVisibleSigProperties
object containing the visual signaturejava.io.IOException
- when something went wrong during parsingpublic COSDocument getVisualSignature()
public int getPreferedSignatureSize()
public void setPreferedSignatureSize(int size)
size
- the size of the signaturepublic void close() throws java.io.IOException
java.io.IOException
- if the document could not be closedCopyright © 2002–2018. All rights reserved.