com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class HighlightAnnotation

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


    public final class HighlightAnnotation
    extends TextMarkupAnnotation

    Represents a highlight annotation that highlights a range of text in the document.

    • Constructor Detail

      • HighlightAnnotation

        public HighlightAnnotation(Page page,
                                   Rectangle rect)

        Creates new Highlight 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.
    • Method Detail

      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor object to process the annotation.

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

        public int getAnnotationType()

        Gets type of annotation.

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