Class PDFNet.SquareAnnot
PDFNet.SquareAnnot
Constructor Attributes | Constructor Name and Description |
---|---|
Square annotation is used to display a rectangle on the page.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
PDFNet.SquareAnnot.create(doc, pos)
Creates a new Square annotation in the specified document.
|
<static> |
PDFNet.SquareAnnot.createFromAnnot(ann)
creates a Square annotation and initializes it using given annotation object.
|
<static> |
PDFNet.SquareAnnot.createFromObj(d)
creates an Square annotation and initializes it using given Cos/SDF object.
|
[Documentation Not Yet Added]
|
|
[Documentation Not Yet Added]
|
|
[Documentation Not Yet Added]
|
|
[Documentation Not Yet Added]
|
|
setContentRect(cr)
[Documentation Not Yet Added]
|
|
setInteriorColor(col, numcomp)
[Documentation Not Yet Added]
|
|
[Documentation Not Yet Added]
|
|
setPadding(cr)
[Documentation Not Yet Added]
|
Class Detail
PDFNet.SquareAnnot(id)
Square annotation is used to display a rectangle on the page. When opened,
a square annotation can display a pop-up window containing the text of the
associated note. The rectangle may be inscribed and possibly padded within the
annotation rectangle defined by the annotation dictionary's Rect entry.
- Parameters:
- id
Method Detail
<static>
{SquareAnnot}
PDFNet.SquareAnnot.create(doc, pos)
Creates a new Square annotation in the specified document.
- Parameters:
- {SDFDoc} doc
- A document to which the annotation is added.
- {rect} pos
- A rectangle specifying the annotation's bounds, in user space coordinates.
- Returns:
- {SquareAnnot} A promise that resolves to a newly created blank Square annotation.
<static>
{SquareAnnot}
PDFNet.SquareAnnot.createFromAnnot(ann)
creates a Square annotation and initializes it using given annotation object.
- Parameters:
- {Annot} ann
- Annot object used to initialize the Square annotation.
- Returns:
- {SquareAnnot} A promise that resolves to an object of type: "SquareAnnot" (generated documentation)
<static>
{SquareAnnot}
PDFNet.SquareAnnot.createFromObj(d)
creates an Square annotation and initializes it using given Cos/SDF object.
- Parameters:
- {Obj} d
- The Cos/SDF object to initialze the annotation with.
- Returns:
- {SquareAnnot} A promise that resolves to an object of type: "SquareAnnot" (generated documentation)
{rect}
getContentRect()
[Documentation Not Yet Added]
- Returns:
- {rect} A promise that resolves to an object of type: "rect" (generated documentation)
{colorpt}
getInteriorColor()
[Documentation Not Yet Added]
- Returns:
- {colorpt} A promise that resolves to an object of type: "colorpt" (generated documentation)
{number}
getInteriorColorCompNum()
[Documentation Not Yet Added]
- Returns:
- {number} A promise that resolves to an object of type: "number" (generated documentation)
{rect}
getPadding()
[Documentation Not Yet Added]
- Returns:
- {rect} A promise that resolves to an object of type: "rect" (generated documentation)
setContentRect(cr)
[Documentation Not Yet Added]
- Parameters:
- {rect} cr
- (generated documentation)
setInteriorColor(col, numcomp)
[Documentation Not Yet Added]
- Parameters:
- {colorpt} col
- (generated documentation)
- {number} numcomp
- (generated documentation)
setInteriorColorDefault(col)
[Documentation Not Yet Added]
- Parameters:
- {colorpt} col
- (generated documentation)
setPadding(cr)
[Documentation Not Yet Added]
- Parameters:
- {rect} cr
- (generated documentation)