com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class InkAnnotation

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation


    public final class InkAnnotation
    extends MarkupAnnotation

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

    • Constructor Detail

      • InkAnnotation

        public InkAnnotation(IDocument document,
                     List<Point[]> inkList)
        Constructor for Ink annotation for Generator.
        Parameters:
        document - Document where ink annotation will be created.
        inkList - An array of Point[] arrays, each representing a stroked path.
      • InkAnnotation

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

        Creates new Ink annotation on the specified page.

        Parameters:
        page - The document's page where annotation should be created.
        rect - The annotation rectangle, defining the location of the annotation on the page.
        inkList - An array of Point[] arrays, each representing a stroked path.
    • Method Detail

      • getCapStyle

        public int getCapStyle()

        get style of ink annotation line endings.

        Returns:
        CapStyle element
        See Also:
        CapStyle
      • setCapStyle

        public void setCapStyle(int value)

        Set style of ink annotation line endings.

        Parameters:
        value - CapStyle element
        See Also:
        CapStyle
      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor object to process the annotation.

        Specified by:
        accept in class Annotation
        Parameters:
        visitor - Visitor object.
      • getInkList

        public List<Point[]> getInkList()

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

        Returns:
        List<Point[]> object
      • setInkList

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

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

        Parameters:
        value - List<Point[]> object
      • getAnnotationType

        public int getAnnotationType()

        Gets type of annotation.

        Specified by:
        getAnnotationType in class Annotation
        Returns:
        AnnotationType element
        See Also:
        AnnotationType