public class

Square

extends Markup
java.lang.Object
   ↳ com.pdftron.pdf.Annot
     ↳ com.pdftron.pdf.annots.Markup
       ↳ com.pdftron.pdf.annots.Square

Class Overview

Square and circle annotations (PDF 1.3) shall display, respectively, a rectangle or an ellipse on the page. When opened, they shall display a pop-up window containing the text of the associated note. The rectangle or ellipse shall be inscribed within the annotation rectangle defined by the annotation dictionary's Rect entry

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.annots.Markup
From class com.pdftron.pdf.Annot
Public Constructors
Square(Obj d)
Creates a Square annotation and initialize it using given Cos/SDF object.
Square()
Creates an empty Square annotation.
Square(Annot annot)
Creates a Square annotation and initialize it using given annotation object.
Public Methods
static Square create(Doc doc, Rect pos)
Creates a new Square annotation, in the specified document.
[Expand]
Inherited Methods
From class com.pdftron.pdf.annots.Markup
From class com.pdftron.pdf.Annot
From class java.lang.Object

Public Constructors

public Square (Obj d)

Creates a Square annotation and initialize it using given Cos/SDF object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
d the input Cos/SDF object

public Square ()

Creates an empty Square annotation.

public Square (Annot annot)

Creates a Square annotation and initialize it using given annotation object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
annot the annot

Public Methods

public static Square create (Doc doc, Rect pos)

Creates a new Square annotation, in the specified document.

Parameters
doc A document to which the annotation is added.
pos A rectangle specifying the annotation's bounds, specified in user space coordinates.
Returns
  • A newly created blank Square annotation.