SignatureField
Overview
SignatureField is a class in Aspose.Pdf FOSS for Java.
Inherits from: Field.
Signature field (/FT /Sig) (ISO 32000-1:2008, §12.7.4.5).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
signed | boolean | Read | Returns whether this signature field has been signed. |
signatureDictionary | COSDictionary | Read | Returns the signature dictionary (/V entry). |
reason | String | Read | Returns the signing reason from the signature dictionary. |
location | String | Read | Returns the signing location from the signature dictionary. |
signerName | String | Read | Returns the signer name from the signature dictionary (/Name). |
date | String | Read | Returns the signing date from the signature dictionary (/M). |
byteRange | int[] | Read | Returns the byte range array from the signature dictionary. |
signatureBytes | byte[] | Read | Returns the PKCS#7 signature bytes from /Contents. |
filter | String | Read | Returns the signature filter name (/Filter). |
subFilter | String | Read | Returns the signature sub-filter name (/SubFilter). |
border | Border | Read | Returns the border of this form field. |
actions | org.aspose.pdf.annotations.AnnotationActionCollection | Read | Returns the action collection for this field. |
partialName | String | Read | Returns the partial field name (/T entry). |
fullName | String | Read | Returns the fully-qualified dotted name of this field. |
alternateName | String | Read | Returns the alternate (tooltip) name (/TU entry). |
value | String | Read | Returns the field value (/V entry) as a string. |
defaultValue | String | Read | Returns the default value (/DV entry) as a string. |
fieldFlags | int | Read | Returns the field flags (/Ff entry). |
readOnly | boolean | Read | Returns whether this field is read-only (bit 1 of /Ff). |
required | boolean | Read | Returns whether this field is required (bit 2 of /Ff). |
noExport | boolean | Read | Returns whether this field is excluded from export (bit 3 of /Ff). |
defaultAppearance | String | Read | Returns the default appearance string (/DA entry). |
characteristics | AppearanceCharacteristics | Read | Returns the appearance characteristics helper backed by the /MK dictionary. |
count | int | Read | Returns the number of child fields (sub-widgets) of this field. |
pageIndex | int | Read | Returns the 1-based page index on which this field’s widget annotation resides. |
annotationIndex | int | Read | Returns the 0-based annotation index of this field within its page’s |
| annotation array. | |||
fieldType | String | Read | Returns the field type (/FT), e.g. |
fieldValue | COSBase | Read | Returns the raw field value (/V). |
fieldName | String | Read | Returns the partial field name (/T). |
highlightMode | String | Read | Returns the highlight mode (/H). |
appearanceCharacteristics | COSDictionary | Read | Returns the appearance characteristics dictionary (/MK). |
widgetAction | PdfAction | Read | Returns the action (/A) associated with this widget. |
subtype | String | Read | Returns the annotation subtype (e.g. |
rect | Rectangle | Read | Returns the annotation rectangle defining its location on the page. |
contents | String | Read | Returns the text content of the annotation (/Contents entry). |
name | String | Read | Returns the unique name of the annotation (/NM entry). |
modified | String | Read | Returns the date and time the annotation was last modified (/M entry). |
flags | int | Read | Returns the annotation flags (/F entry) as a bitmask. |
invisible | boolean | Read | Returns whether the Invisible flag (bit 1) is set. |
hidden | boolean | Read | Returns whether the Hidden flag (bit 2) is set. |
print | boolean | Read | Returns whether the Print flag (bit 3) is set. |
noZoom | boolean | Read | Returns whether the NoZoom flag (bit 4) is set. |
noRotate | boolean | Read | Returns whether the NoRotate flag (bit 5) is set. |
noView | boolean | Read | Returns whether the NoView flag (bit 6) is set. |
locked | boolean | Read | Returns whether the Locked flag (bit 8) is set. |
color | Color | Read | Returns the annotation color (/C entry). |
normalAppearanceStream | COSStream | Read | Returns the raw normal appearance stream (/AP /N) for this annotation |
| (ISO 32000-1:2008, §12.5.5). | |||
normalAppearance | XForm | Read | Returns the normal appearance as an {@link XForm}, mirroring the C# |
| {@code Annotation.NormalAppearance} property. | |||
opacity | double | Read | Returns the opacity of the annotation (0.0 = fully transparent, 1.0 = fully opaque). |
zIndex | int | Read | Returns the Z-index (drawing order) of this annotation. |
page | Page | Read | Returns the page this annotation belongs to. |
cOSDictionary | COSDictionary | Read | Returns the underlying COS dictionary for this annotation. |
Methods
| Signature | Description |
|---|---|
SignatureField(dict: COSDictionary, page: Page, fullName: String) | Constructs a signature field from an existing COS dictionary. |
isSigned() → boolean | Returns whether this signature field has been signed. |
getSignatureDictionary() → COSDictionary | Returns the signature dictionary (/V entry). |
setSignatureDictionary(sigDict: COSDictionary) | Sets the signature dictionary (/V entry). |
getReason() → String | Returns the signing reason from the signature dictionary. |
getLocation() → String | Returns the signing location from the signature dictionary. |
getSignerName() → String | Returns the signer name from the signature dictionary (/Name). |
getDate() → String | Returns the signing date from the signature dictionary (/M). |
getByteRange() → int[] | Returns the byte range array from the signature dictionary. |
getSignatureBytes() → byte[] | Returns the PKCS#7 signature bytes from /Contents. |
getFilter() → String | Returns the signature filter name (/Filter). |
getSubFilter() → String | Returns the signature sub-filter name (/SubFilter). |
getBorder() → Border | Returns the border of this form field. |
setBorder(border: Border) | Sets the border of this form field. |
getActions() → org.aspose.pdf.annotations.AnnotationActionCollection | Returns the action collection for this field. |
setWidth(width: double) | Sets the width of the field widget by adjusting the annotation rectangle. |
setHeight(height: double) | Sets the height of the field widget by adjusting the annotation rectangle. |
getPartialName() → String | Returns the partial field name (/T entry). |
setPartialName(name: String) | Sets the partial field name (/T entry). |
getFullName() → String | Returns the fully-qualified dotted name of this field. |
getAlternateName() → String | Returns the alternate (tooltip) name (/TU entry). |
getValue() → String | Returns the field value (/V entry) as a string. |
setValue(value: String) | Sets the field value (/V entry). |
getDefaultValue() → String | Returns the default value (/DV entry) as a string. |
getFieldFlags() → int | Returns the field flags (/Ff entry). |
setFieldFlags(flags: int) | Sets the field flags (/Ff entry). |
isReadOnly() → boolean | Returns whether this field is read-only (bit 1 of /Ff). |
isRequired() → boolean | Returns whether this field is required (bit 2 of /Ff). |
isNoExport() → boolean | Returns whether this field is excluded from export (bit 3 of /Ff). |
getDefaultAppearance() → String | Returns the default appearance string (/DA entry). |
getCharacteristics() → AppearanceCharacteristics | Returns the appearance characteristics helper backed by the /MK dictionary. |
fromDictionary(dict: COSDictionary, ftObj: COSBase, fullName: String, page: Page, parser: PDFParser) → Field | Factory method: creates the appropriate {@link Field} subclass from a COS dictionary. |
getCount() → int | Returns the number of child fields (sub-widgets) of this field. |
get(index: int) → Field | Returns the child field at the given 1-based index. |
iterator() → Iterator<Field> | Returns an iterator over child fields (sub-widgets) of this field. |
getPageIndex() → int | Returns the 1-based page index on which this field’s widget annotation resides. |
getAnnotationIndex() → int | Returns the 0-based annotation index of this field within its page’s |
| annotation array. | |
WidgetAnnotation(dict: COSDictionary, page: Page) | Constructs a widget annotation from an existing COS dictionary. |
getFieldType() → String | Returns the field type (/FT), e.g. |
getFieldValue() → COSBase | Returns the raw field value (/V). |
getFieldName() → String | Returns the partial field name (/T). |
getHighlightMode() → String | Returns the highlight mode (/H). |
getAppearanceCharacteristics() → COSDictionary | Returns the appearance characteristics dictionary (/MK). |
getWidgetAction() → PdfAction | Returns the action (/A) associated with this widget. |
getSubtype() → String | Returns the annotation subtype (e.g. |
getRect() → Rectangle | Returns the annotation rectangle defining its location on the page. |
setRect(rect: Rectangle) | Sets the annotation rectangle. |
getContents() → String | Returns the text content of the annotation (/Contents entry). |
setContents(contents: String) | Sets the text content of the annotation (/Contents entry). |
getName() → String | Returns the unique name of the annotation (/NM entry). |
setName(name: String) | Sets the unique name of the annotation (/NM entry). |
getModified() → String | Returns the date and time the annotation was last modified (/M entry). |
setModified(date: String) | Sets the date and time the annotation was last modified (/M entry). |
getFlags() → int | Returns the annotation flags (/F entry) as a bitmask. |
setFlags(flags: int) | Sets the annotation flags (/F entry) as a bitmask. |
isInvisible() → boolean | Returns whether the Invisible flag (bit 1) is set. |
isHidden() → boolean | Returns whether the Hidden flag (bit 2) is set. |
isPrint() → boolean | Returns whether the Print flag (bit 3) is set. |
isNoZoom() → boolean | Returns whether the NoZoom flag (bit 4) is set. |
isNoRotate() → boolean | Returns whether the NoRotate flag (bit 5) is set. |
isNoView() → boolean | Returns whether the NoView flag (bit 6) is set. |
isLocked() → boolean | Returns whether the Locked flag (bit 8) is set. |
getColor() → Color | Returns the annotation color (/C entry). |
setColor(color: Color) | Sets the annotation color (/C entry) as an RGB color array. |
getNormalAppearanceStream() → COSStream | Returns the raw normal appearance stream (/AP /N) for this annotation |
| (ISO 32000-1:2008, §12.5.5). | |
getNormalAppearance() → XForm | Returns the normal appearance as an {@link XForm}, mirroring the C# |
| {@code Annotation.NormalAppearance} property. | |
flatten() | Flattens this annotation into the page content stream. |
getOpacity() → double | Returns the opacity of the annotation (0.0 = fully transparent, 1.0 = fully opaque). |
setOpacity(opacity: double) | Sets the opacity of the annotation (0.0 = fully transparent, 1.0 = fully opaque). |
getZIndex() → int | Returns the Z-index (drawing order) of this annotation. |
setZIndex(zIndex: int) | Sets the Z-index (drawing order) of this annotation. |
getPage() → Page | Returns the page this annotation belongs to. |
setPage(page: Page) | Sets the page this annotation belongs to. |
getCOSDictionary() → COSDictionary | Returns the underlying COS dictionary for this annotation. |