public class SignatureOptions extends Object implements Closeable
| Constructor and Description |
|---|
SignatureOptions()
Creates the default signature options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the visual signature COSDocument, if any.
|
int |
getPage()
Get the page number.
|
int |
getPreferedSignatureSize()
Get the preferred size of the signature.
|
COSDocument |
getVisualSignature()
Get the visual signature.
|
void |
setPage(int pageNo)
Set the page number.
|
void |
setPreferedSignatureSize(int size)
Set the preferred size of the signature.
|
void |
setVisualSignature(File file)
Reads the visual signature from the given file.
|
void |
setVisualSignature(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 SignatureOptions()
public void setPage(int pageNo)
pageNo - the page numberpublic int getPage()
public void setVisualSignature(File file) throws IOException
file - the file containing the visual signatureIOException - when something went wrong during parsingpublic void setVisualSignature(InputStream is) throws IOException
is - the input stream containing the visual signatureIOException - when something went wrong during parsingpublic void setVisualSignature(PDVisibleSigProperties visSignatureProperties) throws IOException
visSignatureProperties - the PDVisibleSigProperties object containing the visual signatureIOException - 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 IOException
close in interface Closeableclose in interface AutoCloseableIOException - if the document could not be closedCopyright © 2015–2021 The veraPDF Consortium. All rights reserved.