SetaPDF_Core_Document_Page_Annotation_BorderStyle Class representing annotations border style dictionary
File: /SetaPDF v2/Core/Document/Page/Annotation/BorderStyle.php
See PDF 32000-1:2008 - 12.5.4 Border Styles
Class hierarchy
Summary
Constants
BEVELED
Border style
DASHED
Border style
INSET
Border style
SOLID
Border style
UNDERLINE
Border style
Properties
$_annotation
protected SetaPDF_Core_Document_Page_Annotation SetaPDF_Core_Document_Page_Annotation_BorderStyle::$_annotation
The dictionary
Methods
__construct()
public SetaPDF_Core_Document_Page_Annotation_BorderStyle::__construct (
SetaPDF_Core_Document_Page_Annotation $annotation
)The constructor.
Parameters
- $annotation : SetaPDF_Core_Document_Page_Annotation
getDashPattern()
getDictionary()
public SetaPDF_Core_Document_Page_Annotation_BorderStyle::getDictionary (
[ boolean $create = false ]
): SetaPDF_Core_Type_DictionaryGet the dictionary of it.
Parameters
- $create : boolean
Defines whether the dictionary should be created if it doesn't exists
getStyle()
getWidth()
setDashPattern()
public SetaPDF_Core_Document_Page_Annotation_BorderStyle::setDashPattern (
array|SetaPDF_Core_Type_Array $pattern
): SetaPDF_Core_Document_Page_Annotation_BorderStyleSet the dash pattern.
Parameters
- $pattern : array|SetaPDF_Core_Type_Array
setStyle()
public SetaPDF_Core_Document_Page_Annotation_BorderStyle::setStyle (
null|string $style
): SetaPDF_Core_Document_Page_Annotation_BorderStyleSet the border style.
Parameters
- $style : null|string
setWidth()
public SetaPDF_Core_Document_Page_Annotation_BorderStyle::setWidth (
null|int|float $width
): SetaPDF_Core_Document_Page_Annotation_BorderStyleSet the border width.
Parameters
- $width : null|int|float