PolylineAnnotation

PolylineAnnotation

Overview

PolylineAnnotation is a class in Aspose.PDF FOSS for Java. Inherits from: MarkupAnnotation.

Polyline annotation (ISO 32000-1:2008, Section 12.5.6.9, /Subtype /PolyLine).

This class provides 67 methods for working with PolylineAnnotation objects in Java programs. Available methods include: PolylineAnnotation, flatten, fromDictionary, getActions, getBorder, getColor, getContents, getCreationDate, getFlags, getFlagsAsEnum, getHorizontalAlignment, getHyperlink, and 54 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: actions, border, color, contents, creationDate, firstParagraphInColumn, and 33 more.

Properties

NameTypeAccessDescription
verticesdouble[]ReadReturns the vertices of the polyline as an array of coordinate pairs [x1, y1, x2, y2, …].
titleStringReadReturns the author or title of the annotation (/T entry).
opacitydoubleReadReturns the opacity of the annotation (/CA entry, 0.0-1.0, default 1.0).
subjectStringReadReturns the subject of the annotation (/Subj entry).
richTextStringReadReturns the rich text content of the annotation (/RC entry, XHTML format).
creationDateStringReadReturns the creation date of the annotation (/CreationDate entry).
replyTypeStringReadReturns the reply type of this annotation (/RT entry).
popupPopupAnnotationReadReturns the associated popup annotation (/Popup entry).
inReplyToAnnotationReadReturns the annotation this one is in reply to (/IRT entry).
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.
readOnlybooleanReadReturns whether the ReadOnly flag (bit 7) is set.
lockedbooleanReadReturns whether the Locked flag (bit 8) is set.
colorColorReadReturns the annotation color (/C entry).
borderBorderReadReturns the border of this annotation.
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.
zIndexintReadReturns the Z-index (drawing order) of this annotation.
actionsAnnotationActionCollectionReadReturns the annotation action collection (/AA entry).
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
PolylineAnnotation(dict: PdfDictionary, page: Page)Constructs a polyline annotation from an existing PDF dictionary.
PolylineAnnotation(page: Page, rect: Rectangle)Constructs a new polyline annotation with the given rectangle on the specified page.
getVertices()double[]Returns the vertices of the polyline as an array of coordinate pairs [x1, y1, x2, y2, …].
getTitle()StringReturns the author or title of the annotation (/T entry).
setTitle(title: String)Sets the author or title of the annotation (/T entry).
getOpacity()doubleReturns the opacity of the annotation (/CA entry, 0.0-1.0, default 1.0).
setOpacity(opacity: double)Sets the opacity of the annotation (/CA entry, 0.0-1.0).
getSubject()StringReturns the subject of the annotation (/Subj entry).
setSubject(subject: String)Sets the subject of the annotation (/Subj entry).
getRichText()StringReturns the rich text content of the annotation (/RC entry, XHTML format).
setRichText(richText: String)Sets the rich text content of the annotation (/RC entry, XHTML format).
getCreationDate()StringReturns the creation date of the annotation (/CreationDate entry).
setCreationDate(date: String)Sets the creation date of the annotation (/CreationDate entry).
getReplyType()StringReturns the reply type of this annotation (/RT entry).
setReplyType(replyType: String)Sets the reply type of this annotation (/RT entry).
getPopup()PopupAnnotationReturns the associated popup annotation (/Popup entry).
setPopup(popup: PopupAnnotation)Sets the associated popup annotation (/Popup entry).
getInReplyTo()AnnotationReturns the annotation this one is in reply to (/IRT entry).
setInReplyTo(annotation: Annotation)Sets the annotation this one is in reply to (/IRT entry).
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.
isReadOnly()booleanReturns whether the ReadOnly flag (bit 7) 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.
getBorder()BorderReturns the border of this annotation.
setBorder(border: Border)Sets the border of this annotation.
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.
getZIndex()intReturns the Z-index (drawing order) of this annotation.
setZIndex(zIndex: int)Sets the Z-index (drawing order) of this annotation.
getActions()AnnotationActionCollectionReturns the annotation action collection (/AA entry).
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.
fromDictionary(dict: PdfDictionary, page: Page)AnnotationFactory method: creates a typed annotation from a PDF dictionary based on its /Subtype.
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