Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Zend_Pdf_Element $annotationDictionary) | |
![]() | |
getResource () | |
setBottom ($bottom) | |
getBottom () | |
setTop ($top) | |
getTop () | |
setRight ($right) | |
getRight () | |
setLeft ($left) | |
getLeft () | |
getText () | |
setText ($text) | |
__construct (Zend_Pdf_Element $annotationDictionary) | |
Static Public Member Functions | |
static | create ($x1, $y1, $x2, $y2, $text, $subType, $quadPoints) |
![]() | |
static | load (Zend_Pdf_Element $resource) |
Data Fields | |
const | SUBTYPE_HIGHLIGHT = 'Highlight' |
const | SUBTYPE_UNDERLINE = 'Underline' |
const | SUBTYPE_SQUIGGLY = 'Squiggly' |
const | SUBTYPE_STRIKEOUT = 'StrikeOut' |
Additional Inherited Members | |
![]() | |
$_annotationDictionary | |
Definition at line 43 of file Markup.php.
__construct | ( | Zend_Pdf_Element | $annotationDictionary | ) |
Annotation object constructor
Zend_Pdf_Exception |
Definition at line 58 of file Markup.php.
|
static |
Create markup annotation object
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 | $x1 | |
float | $y1 | |
float | $x2 | |
float | $y2 | |
string | $text | |
string | $subType | |
array | $quadPoints | [x1 y1 x2 y2 x3 y3 x4 y4] |
Zend_Pdf_Exception |
Definition at line 114 of file Markup.php.
const SUBTYPE_HIGHLIGHT = 'Highlight' |
Annotation subtypes
Definition at line 48 of file Markup.php.
const SUBTYPE_SQUIGGLY = 'Squiggly' |
Definition at line 50 of file Markup.php.
const SUBTYPE_STRIKEOUT = 'StrikeOut' |
Definition at line 51 of file Markup.php.
const SUBTYPE_UNDERLINE = 'Underline' |
Definition at line 49 of file Markup.php.