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
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
document | IDocument | Document where ink annotation will be created. |
inkList | java.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:
Parameter | Type | Description |
---|---|---|
page | Page | The document’s page where annotation should be created. |
rect | Rectangle | The annotation rectangle, defining the location of the annotation on the page. |
inkList | java.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:
Parameter | Type | Description |
---|---|---|
value | int | CapStyle element |
accept(AnnotationSelector visitor)
public void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
Parameters:
Parameter | Type | Description |
---|---|---|
visitor | AnnotationSelector | Visitor 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:
Parameter | Type | Description |
---|---|---|
value | java.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:
Parameter | Type | Description |
---|---|---|
transform | Matrix | Matrix specifying the transformation. |