A markup annotation
An annotation associates an object such as a note, sound, or movie with a location on a page of a PDF document, or provides a way to interact with the user by means of the mouse and keyboard.
package | Zend_Pdf |
---|---|
subpackage | Annotation |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Pdf_Annotation |
__construct(\Zend_Pdf_Element $annotationDictionary)
inherited_from | \Zend_Pdf_Annotation::__construct() |
---|
\Zend_Pdf_Exception |
---|
__construct(\Zend_Pdf_Element $annotationDictionary)
\Zend_Pdf_Exception |
---|
create(float $x1, float $y1, float $x2, float $y2, string $text, string $subType, array $quadPoints) : \Zend_Pdf_Annotation_Markup
Text markup annotations appear as highlights, underlines, strikeouts or jagged ("squiggly") underlines in the text of a document. When opened, they display a pop-up window containing the text of the associated note.
$subType parameter may contain Zend_Pdf_Annotation_Markup::SUBTYPE_HIGHLIGHT Zend_Pdf_Annotation_Markup::SUBTYPE_UNDERLINE Zend_Pdf_Annotation_Markup::SUBTYPE_SQUIGGLY Zend_Pdf_Annotation_Markup::SUBTYPE_STRIKEOUT for for a highlight, underline, squiggly-underline, or strikeout annotation, respectively.
$quadPoints is an array of 8xN numbers specifying the coordinates of N quadrilaterals default user space. Each quadrilateral encompasses a word or group of contiguous words in the text underlying the annotation. The coordinates for each quadrilateral are given in the order x1 y1 x2 y2 x3 y3 x4 y4 specifying the quadrilateral’s four vertices in counterclockwise order starting from left bottom corner. The text is oriented with respect to the edge connecting points (x1, y1) and (x2, y2).
float
float
float
float
string
string
array
[x1 y1 x2 y2 x3 y3 x4 y4]
\Zend_Pdf_Exception |
---|
\Zend_Pdf_Annotation_Markup
getBottom() : float
float
getLeft() : float
float
getRight() : float
float
getText() : string
string
getTop() : float
float
setBottom(float $bottom) : \Zend_Pdf_Annotation
float
\Zend_Pdf_Annotation
setLeft(float $left) : \Zend_Pdf_Annotation
float
\Zend_Pdf_Annotation
setRight(float $right) : \Zend_Pdf_Annotation
float
\Zend_Pdf_Annotation
setText(string $text) : \Zend_Pdf_Annotation
string
\Zend_Pdf_Annotation
setTop(float $top) : \Zend_Pdf_Annotation
float
\Zend_Pdf_Annotation
$_annotationDictionary : \Zend_Pdf_Element_Dictionary | \Zend_Pdf_Element_Object | \Zend_Pdf_Element_Reference
SUBTYPE_HIGHLIGHT = 'Highlight'
SUBTYPE_SQUIGGLY = 'Squiggly'
SUBTYPE_STRIKEOUT = 'StrikeOut'
SUBTYPE_UNDERLINE = 'Underline'