PopupAnnotation

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

public final class PopupAnnotation extends Annotation

Represents the pop-up annotation that displays text in a pop-up window for entry and editing.

Constructors

ConstructorDescription
PopupAnnotation(IDocument document)Constructor.
PopupAnnotation(Page page, Rectangle rect)Creates new Popup annotation on the specified page.

Methods

MethodDescription
getOpen()Gets a flag specifying whether the pop-up annotation should initially be displayed open.
setOpen(boolean value)Sets a flag specifying whether the pop-up annotation should initially be displayed open.
getParent()Gets the parent annotation with which this pop-up annotation shall be associated.
setParent(MarkupAnnotation value)Sets the parent annotation with which this pop-up annotation shall be associated.
getAnnotationType()Gets type of annotation.
accept(AnnotationSelector visitor)Accepts visitor object to process the annotation.

PopupAnnotation(IDocument document)

public PopupAnnotation(IDocument document)

Constructor. for using in Generator.

Parameters:

ParameterTypeDescription
documentIDocumentDocument where new popup annotation will be created.

PopupAnnotation(Page page, Rectangle rect)

public PopupAnnotation(Page page, Rectangle rect)

Creates new Popup 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.

getOpen()

public boolean getOpen()

Gets a flag specifying whether the pop-up annotation should initially be displayed open.

Returns: boolean - boolean value

setOpen(boolean value)

public void setOpen(boolean value)

Sets a flag specifying whether the pop-up annotation should initially be displayed open.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getParent()

public Annotation getParent()

Gets the parent annotation with which this pop-up annotation shall be associated. If this entry is present, the parent annotation’s Contents, M, C, and T entries shall override those of the pop-up annotation itself.

Returns: Annotation - MarkupAnnotation object

setParent(MarkupAnnotation value)

public void setParent(MarkupAnnotation value)

Sets the parent annotation with which this pop-up annotation shall be associated. If this entry is present, the parent annotation’s Contents, M, C, and T entries shall override those of the pop-up annotation itself.

Parameters:

ParameterTypeDescription
valueMarkupAnnotationMarkupAnnotation object

getAnnotationType()

public AnnotationType getAnnotationType()

Gets type of annotation.

Returns: AnnotationType - AnnotationType element

accept(AnnotationSelector visitor)

public void accept(AnnotationSelector visitor)

Accepts visitor object to process the annotation.

Parameters:

ParameterTypeDescription
visitorAnnotationSelectorVisitor object.