SignatureField

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).

This class provides 92 methods for working with SignatureField objects in Java programs. Available methods include: SignatureField, WidgetAnnotation, flatten, fromDictionary, get, getActions, getAlternateName, getAnnotationIndex, getAppearance, getAppearanceCharacteristics, getBorder, getByteRange, and 79 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: actions, alternateName, annotationIndex, appearance, appearanceCharacteristics, border, and 55 more.

Properties

NameTypeAccessDescription
signedbooleanReadReturns whether this signature field has been signed.
signatureDictionaryPdfDictionaryReadReturns the signature dictionary (/V entry).
reasonStringReadReturns the signing reason from the signature dictionary.
locationStringReadReturns the signing location from the signature dictionary.
signerNameStringReadReturns the signer name from the signature dictionary (/Name).
dateStringReadReturns the signing date from the signature dictionary (/M).
byteRangeint[]ReadReturns the byte range array from the signature dictionary.
signatureBytesbyte[]ReadReturns the PKCS#7 signature bytes from /Contents.
filterStringReadReturns the signature filter name (/Filter).
subFilterStringReadReturns the signature sub-filter name (/SubFilter).
borderBorderReadReturns the border of this form field.
actionsorg.aspose.pdf.annotations.AnnotationActionCollectionReadReturns the action collection for this field.
partialNameStringReadReturns the partial field name (/T entry).
fullNameStringReadReturns the fully-qualified dotted name of this field.
alternateNameStringReadReturns the alternate (tooltip) name (/TU entry).
valueStringReadReturns the field value (/V entry) as a string.
defaultValueStringReadReturns the default value (/DV entry) as a string.
fieldFlagsintReadReturns the field flags (/Ff entry).
readOnlybooleanReadReturns whether this field is read-only (bit 1 of /Ff).
requiredbooleanReadReturns whether this field is required (bit 2 of /Ff).
noExportbooleanReadReturns whether this field is excluded from export (bit 3 of /Ff).
defaultAppearanceStringReadReturns the default appearance string (/DA entry).
characteristicsAppearanceCharacteristicsReadReturns the appearance characteristics helper backed by the /MK dictionary.
appearanceAppearanceDictionaryReadReturns a typed view over this field’s {@code /AP} appearance dictionary
(ISO 32000-1:2008 §12.5.5).
countintReadReturns the number of child fields (sub-widgets) of this field.
pageIndexintReadReturns the 1-based page index on which this field’s widget annotation resides.
annotationIndexintReadReturns the 0-based annotation index of this field within its page’s
annotation array.
fieldTypeStringReadReturns the field type (/FT), e.g.
fieldValuePdfBaseReadReturns the raw field value (/V).
fieldNameStringReadReturns the partial field name (/T).
highlightModeStringReadReturns the highlight mode (/H).
appearanceCharacteristicsPdfDictionaryReadReturns the appearance characteristics dictionary (/MK).
widgetActionPdfActionReadReturns the action (/A) associated with this widget.
subtypeStringReadReturns the annotation subtype (e.g.
rectRectangleReadReturns the annotation rectangle defining its location on the page.
contentsStringReadReturns the text content of the annotation (/Contents entry).
nameStringReadReturns the unique name of the annotation (/NM entry).
modifiedStringReadReturns the date and time the annotation was last modified (/M entry).
flagsintReadReturns the annotation flags (/F entry) as a bitmask.
flagsAsEnumjava.util.EnumSet<AnnotationFlags>ReadReturns the annotation flags as a typed {@link java.util.EnumSet}.
invisiblebooleanReadReturns whether the Invisible flag (bit 1) is set.
hiddenbooleanReadReturns whether the Hidden flag (bit 2) is set.
printbooleanReadReturns whether the Print flag (bit 3) is set.
noZoombooleanReadReturns whether the NoZoom flag (bit 4) is set.
noRotatebooleanReadReturns whether the NoRotate flag (bit 5) is set.
noViewbooleanReadReturns whether the NoView flag (bit 6) is set.
lockedbooleanReadReturns whether the Locked flag (bit 8) is set.
colorColorReadReturns the annotation color (/C entry).
normalAppearanceStreamPdfStreamReadReturns the raw normal appearance stream (/AP /N) for this annotation
(ISO 32000-1:2008, §12.5.5).
normalAppearanceXFormReadReturns the normal appearance as an {@link XForm}, mirroring the C#
{@code Annotation.NormalAppearance} property.
opacitydoubleReadReturns the opacity of the annotation (0.0 = fully transparent, 1.0 = fully opaque).
zIndexintReadReturns the Z-index (drawing order) of this annotation.
pagePageReadReturns the page this annotation belongs to.
pdfDictionaryPdfDictionaryReadReturns the underlying PDF dictionary for this annotation.
marginMarginInfoReadGets the margin information for this paragraph.
horizontalAlignmentHorizontalAlignmentReadGets the horizontal alignment of this paragraph within its container.
inLineParagraphbooleanReadReturns whether this paragraph is an inline element.
keptWithNextbooleanReadReturns whether this paragraph should be kept together with the next paragraph
on the same page during layout.
firstParagraphInColumnbooleanReadReturns whether this paragraph is the first in its column.
inNewPagebooleanReadReturns whether this paragraph should start on a new page during layout.
hyperlinkHyperlinkReadReturns the hyperlink attached to this paragraph (web, local or file
target), or {@code null} if the paragraph is not clickable.

Methods

SignatureDescription
SignatureField(dict: PdfDictionary, page: Page, fullName: String)Constructs a signature field from an existing PDF dictionary.
SignatureField(page: Page, rect: Rectangle)Creates a new, unsigned signature field on the given page at the given
rectangle.
isSigned()booleanReturns whether this signature field has been signed.
getSignatureDictionary()PdfDictionaryReturns the signature dictionary (/V entry).
setSignatureDictionary(sigDict: PdfDictionary)Sets the signature dictionary (/V entry).
getReason()StringReturns the signing reason from the signature dictionary.
getLocation()StringReturns the signing location from the signature dictionary.
getSignerName()StringReturns the signer name from the signature dictionary (/Name).
getDate()StringReturns 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()StringReturns the signature filter name (/Filter).
getSubFilter()StringReturns the signature sub-filter name (/SubFilter).
getBorder()BorderReturns the border of this form field.
setBorder(border: Border)Sets the border of this form field.
getActions()org.aspose.pdf.annotations.AnnotationActionCollectionReturns 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()StringReturns the partial field name (/T entry).
setPartialName(name: String)Sets the partial field name (/T entry).
getFullName()StringReturns the fully-qualified dotted name of this field.
getAlternateName()StringReturns the alternate (tooltip) name (/TU entry).
getValue()StringReturns the field value (/V entry) as a string.
setValue(value: String)Sets the field value (/V entry).
getDefaultValue()StringReturns the default value (/DV entry) as a string.
getFieldFlags()intReturns the field flags (/Ff entry).
setFieldFlags(flags: int)Sets the field flags (/Ff entry).
isReadOnly()booleanReturns whether this field is read-only (bit 1 of /Ff).
isRequired()booleanReturns whether this field is required (bit 2 of /Ff).
isNoExport()booleanReturns whether this field is excluded from export (bit 3 of /Ff).
getDefaultAppearance()StringReturns the default appearance string (/DA entry).
setDefaultAppearance(da: String)Sets the field’s default appearance string (/DA entry).
getCharacteristics()AppearanceCharacteristicsReturns the appearance characteristics helper backed by the /MK dictionary.
getAppearance()AppearanceDictionaryReturns a typed view over this field’s {@code /AP} appearance dictionary
(ISO 32000-1:2008 §12.5.5).
fromDictionary(dict: PdfDictionary, ftObj: PdfBase, fullName: String, page: Page, parser: PDFParser)FieldFactory method: creates the appropriate {@link Field} subclass from a PDF dictionary.
getCount()intReturns the number of child fields (sub-widgets) of this field.
get(index: int)FieldReturns the child field at the given 1-based index.
iterator()Iterator<Field>Returns an iterator over child fields (sub-widgets) of this field.
getPageIndex()intReturns the 1-based page index on which this field’s widget annotation resides.
getAnnotationIndex()intReturns the 0-based annotation index of this field within its page’s
annotation array.
WidgetAnnotation(dict: PdfDictionary, page: Page)Constructs a widget annotation from an existing PDF dictionary.
getFieldType()StringReturns the field type (/FT), e.g.
getFieldValue()PdfBaseReturns the raw field value (/V).
getFieldName()StringReturns the partial field name (/T).
getHighlightMode()StringReturns the highlight mode (/H).
getAppearanceCharacteristics()PdfDictionaryReturns the appearance characteristics dictionary (/MK).
getWidgetAction()PdfActionReturns the action (/A) associated with this widget.
getSubtype()StringReturns the annotation subtype (e.g.
getRect()RectangleReturns the annotation rectangle defining its location on the page.
setRect(rect: Rectangle)Sets the annotation rectangle (ISO 32000-1:2008 §12.5.2, Table 164,
{@code /Rect} entry).
getContents()StringReturns the text content of the annotation (/Contents entry).
setContents(contents: String)Sets the text content of the annotation (/Contents entry).
getName()StringReturns the unique name of the annotation (/NM entry).
setName(name: String)Sets the unique name of the annotation (/NM entry).
getModified()StringReturns 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()intReturns the annotation flags (/F entry) as a bitmask.
setFlags(flags: int)Sets the annotation flags (/F entry) as a bitmask.
getFlagsAsEnum()java.util.EnumSet<AnnotationFlags>Returns the annotation flags as a typed {@link java.util.EnumSet}.
isInvisible()booleanReturns whether the Invisible flag (bit 1) is set.
isHidden()booleanReturns whether the Hidden flag (bit 2) is set.
isPrint()booleanReturns whether the Print flag (bit 3) is set.
isNoZoom()booleanReturns whether the NoZoom flag (bit 4) is set.
isNoRotate()booleanReturns whether the NoRotate flag (bit 5) is set.
isNoView()booleanReturns whether the NoView flag (bit 6) is set.
isLocked()booleanReturns whether the Locked flag (bit 8) is set.
getColor()ColorReturns the annotation color (/C entry).
setColor(color: Color)Sets the annotation color (/C entry) as an RGB color array.
getNormalAppearanceStream()PdfStreamReturns the raw normal appearance stream (/AP /N) for this annotation
(ISO 32000-1:2008, §12.5.5).
getNormalAppearance()XFormReturns the normal appearance as an {@link XForm}, mirroring the C#
{@code Annotation.NormalAppearance} property.
flatten()Flattens this annotation into the page content stream.
getOpacity()doubleReturns 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()intReturns the Z-index (drawing order) of this annotation.
setZIndex(zIndex: int)Sets the Z-index (drawing order) of this annotation.
getPage()PageReturns the page this annotation belongs to.
setPage(page: Page)Sets the page this annotation belongs to.
getPdfDictionary()PdfDictionaryReturns the underlying PDF dictionary for this annotation.
getMargin()MarginInfoGets the margin information for this paragraph.
setMargin(margin: MarginInfo)Sets the margin information for this paragraph.
getHorizontalAlignment()HorizontalAlignmentGets the horizontal alignment of this paragraph within its container.
setHorizontalAlignment(horizontalAlignment: HorizontalAlignment)Sets the horizontal alignment of this paragraph within its container.
isInLineParagraph()booleanReturns whether this paragraph is an inline element.
setInLineParagraph(inLineParagraph: boolean)Sets whether this paragraph should be treated as an inline element.
isKeptWithNext()booleanReturns whether this paragraph should be kept together with the next paragraph
on the same page during layout.
setKeptWithNext(keptWithNext: boolean)Sets whether this paragraph should be kept together with the next paragraph
on the same page during layout.
isFirstParagraphInColumn()booleanReturns whether this paragraph is the first in its column.
setFirstParagraphInColumn(firstParagraphInColumn: boolean)Sets whether this paragraph is the first in its column.
isInNewPage()booleanReturns whether this paragraph should start on a new page during layout.
setInNewPage(inNewPage: boolean)Sets whether this paragraph should start on a new page during layout.
getHyperlink()HyperlinkReturns the hyperlink attached to this paragraph (web, local or file
target), or {@code null} if the paragraph is not clickable.
setHyperlink(hyperlink: Hyperlink)Attaches a hyperlink to this paragraph.

See Also

 English