setasign\SetaPDF2\Core\Document\Page\Annotation

BorderStyle Class representing annotations border style dictionary

File: /SetaPDF v2/Core/Document/Page/Annotation/BorderStyle.php
Old class name (alias): \SetaPDF_Core_Document_Page_Annotation_BorderStyle

See PDF 32000-1:2008 - 12.5.4 Border Styles

Class hierarchy

Summary

Constants

BEVELED

public const string BorderStyle::BEVELED = 'B'

Border style

DASHED

public const string BorderStyle::DASHED = 'D'

Border style

INSET

public const string BorderStyle::INSET = 'I'

Border style

SOLID

public const string BorderStyle::SOLID = 'S'

Border style

UNDERLINE

public const string BorderStyle::UNDERLINE = 'U'

Border style


Properties

$_annotation


Methods

__construct()

The constructor.

Parameters
$annotation : \SetaPDF_Core_Document_Page_Annotation
 

cleanUp()

public BorderStyle::cleanUp (
void
): void

Release memory/cycled references.

getDashPattern()

public BorderStyle::getDashPattern (
void
): ?array

Get the dash pattern.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getDictionary()

public BorderStyle::getDictionary (
bool $create = false
): \SetaPDF_Core_Type_Dictionary

Get the dictionary of it.

Parameters
$create : bool

Defines whether the dictionary should be created if it doesn't exists

getStyle()

public BorderStyle::getStyle (
void
): string

Get the border style.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getWidth()

public BorderStyle::getWidth (
void
): int|float

Get the border width.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setDashPattern()

Set the dash pattern.

Parameters
$pattern : array|\SetaPDF_Core_Type_Array
 

setStyle()

public BorderStyle::setStyle (
?string $style
): self

Set the border style.

Parameters
$style : ?string
 

setWidth()

public BorderStyle::setWidth (
null|int|float $width
): self

Set the border width.

Parameters
$width : null|int|float