| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private int | |
| private RandomAccessRead | |
| private int | |
| private COSDocument |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | |
| public int | Returns: the preferred size of the signature in bytes.Get the preferred size of the signature. |
| public COSDocument | |
| private void | |
| public void | |
| public void | setPreferredSignatureSize(int
the size of the signature in bytes. Only values above 0 will be considered. size)Set the preferred size of the signature. |
| public void | setVisualSignature(File
the file containing the visual signature file)Reads the visual signature from the given file. |
| public void | setVisualSignature(InputStream
the input stream containing the visual signature is)Reads the visual signature from the given input stream. |
| public void | setVisualSignature(PDVisibleSigProperties
the visSignatureProperties)PDVisibleSigProperties object containing the
visual signatureReads the visual signature from the given visual signature properties |
| DEFAULT_SIGNATURE_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_SIGNATURE_SIZE | |
| pageNo | back to summary |
|---|---|
| private int pageNo | |
| pdfSource | back to summary |
|---|---|
| private RandomAccessRead pdfSource | |
| preferredSignatureSize | back to summary |
|---|---|
| private int preferredSignatureSize | |
| visualSignature | back to summary |
|---|---|
| private COSDocument visualSignature | |
| SignatureOptions | back to summary |
|---|---|
| public SignatureOptions() Creates the default signature options. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Closes the visual signature COSDocument, if any. Do not call this before you're saved your signed PDF document, or saving will fail because COSStream objects held both by the COSDocument and by the signed document would no longer be available.
| |
| getPage | back to summary |
|---|---|
| public int getPage() Get the 0-based page number.
| |
| getPreferredSignatureSize | back to summary |
|---|---|
| public int getPreferredSignatureSize() Get the preferred size of the signature.
| |
| getVisualSignature | back to summary |
|---|---|
| public COSDocument getVisualSignature() Get the visual signature.
| |
| initFromRandomAccessRead | back to summary |
|---|---|
| private void initFromRandomAccessRead(RandomAccessRead rar) throws IOException | |
| setPage | back to summary |
|---|---|
| public void setPage(int pageNo) Set the 0-based page number.
| |
| setPreferredSignatureSize | back to summary |
|---|---|
| public void setPreferredSignatureSize(int size) Set the preferred size of the signature.
| |
| setVisualSignature | back to summary |
|---|---|
| public void setVisualSignature(File file) throws IOException Reads the visual signature from the given file.
| |
| setVisualSignature | back to summary |
|---|---|
| public void setVisualSignature(InputStream is) throws IOException Reads the visual signature from the given input stream.
| |
| setVisualSignature | back to summary |
|---|---|
| public void setVisualSignature(PDVisibleSigProperties visSignatureProperties) throws IOException Reads the visual signature from the given visual signature properties
| |