InkAnnotation

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation

public final class InkAnnotation extends MarkupAnnotation

Represents a freehand “scribble” composed of one or more disjoint paths.

Constructors

ConstructorDescription
InkAnnotation(IDocument document, List<Point[]> inkList)Constructor for Ink annotation for Generator.
InkAnnotation(Page page, Rectangle rect, List<Point[]> inkList)Creates new Ink annotation on the specified page.

Methods

MethodDescription
getCapStyle()get style of ink annotation line endings.
setCapStyle(int value)Set style of ink annotation line endings.
accept(AnnotationSelector visitor)Accepts visitor object to process the annotation.
getInkList()Gets list of gestures that are independent lines which are represented by Point[] arrays.
setInkList(List<Point[]> value)Sets list of gestures that are independent lines which are represented by Point[] arrays.
updateAppearance()Updates the Appearance, after text has been changed/moved.
getAnnotationType()Gets type of annotation.
changeAfterResize(Matrix transform)Updates the points in InkList, according to the matrix transform.

InkAnnotation(IDocument document, List<Point[]> inkList)

public InkAnnotation(IDocument document, List<Point[]> inkList)

Constructor for Ink annotation for Generator.

Parameters:

ParameterTypeDescription
documentIDocumentDocument where ink annotation will be created.
inkListjava.util.List<com.aspose.pdf.Point[]>An array of Point[] arrays, each representing a stroked path.

InkAnnotation(Page page, Rectangle rect, List<Point[]> inkList)

public InkAnnotation(Page page, Rectangle rect, List<Point[]> inkList)

Creates new Ink annotation on the specified page.

Parameters:

ParameterTypeDescription
pagePageThe document’s page where annotation should be created.
rectRectangleThe annotation rectangle, defining the location of the annotation on the page.
inkListjava.util.List<com.aspose.pdf.Point[]>An array of Point[] arrays, each representing a stroked path.

getCapStyle()

public int getCapStyle()

get style of ink annotation line endings.

Returns: int - CapStyle element

setCapStyle(int value)

public void setCapStyle(int value)

Set style of ink annotation line endings.

Parameters:

ParameterTypeDescription
valueintCapStyle element

accept(AnnotationSelector visitor)

public void accept(AnnotationSelector visitor)

Accepts visitor object to process the annotation.

Parameters:

ParameterTypeDescription
visitorAnnotationSelectorVisitor object.

getInkList()

public List<Point[]> getInkList()

Gets list of gestures that are independent lines which are represented by Point[] arrays.

Returns: java.util.List<com.aspose.pdf.Point[]> - List object

setInkList(List<Point[]> value)

public void setInkList(List<Point[]> value)

Sets list of gestures that are independent lines which are represented by Point[] arrays.

Parameters:

ParameterTypeDescription
valuejava.util.List<com.aspose.pdf.Point[]>List object

updateAppearance()

public void updateAppearance()

Updates the Appearance, after text has been changed/moved.

getAnnotationType()

public AnnotationType getAnnotationType()

Gets type of annotation.

Returns: AnnotationType - AnnotationType element

changeAfterResize(Matrix transform)

public void changeAfterResize(Matrix transform)

Updates the points in InkList, according to the matrix transform.

Parameters:

ParameterTypeDescription
transformMatrixMatrix specifying the transformation.