SetaPDF_Core_Document_Page_Annotations Helper class for handling annotations of a page

File: /SetaPDF v2/Core/Document/Page/Annotations.php

Class hierarchy

Summary

Constants

TAB_ORDER_ANNOTATIONS_ARRAY

Constant specifying the annotations array tab order

TAB_ORDER_COLUMN

Constant specifying the column tab order

TAB_ORDER_ROW

Constant specifying the row tab order

TAB_ORDER_STRUCTURE

Constant specifying the structure tab order

TAB_ORDER_WIDGET

Constant specifying the widget tab order


Properties


Methods

__construct()

cleanUp()

Release memory/resources.

getAll()

Get all annotations of this page.

Optionally the results can be filtered by the subtype parameter.

Parameters
$subtype : string

See SetaPDF_Core_Document_Page_Annotation::TYPE_* constants for possible values.

Exceptions

Throws SetaPDF_Core_Type_Exception

getArray()

public SetaPDF_Core_Document_Page_Annotations::getArray (
[ boolean $create = false ]
): false|SetaPDF_Core_Type_Array

Returns the Annots array if available or creates a new one.

Parameters
$create : boolean
 
Exceptions

Throws SetaPDF_Core_Type_Exception

getByName()

public SetaPDF_Core_Document_Page_Annotations::getByName (
string $name [, string $encoding = 'UTF-8' ]
): bool|SetaPDF_Core_Document_Page_Annotation

Get an annotation by its name (NM entry)

Parameters
$name : string

The name of the annotation.

$encoding : string
 
Exceptions

Throws SetaPDF_Core_Document_ObjectNotFoundException

Throws SetaPDF_Core_Type_Exception

Throws SetaPDF_Core_Type_IndirectReference_Exception

getTabOrder()

Get the tab order that shall be used for annotations on the page.

Exceptions

Throws SetaPDF_Core_Type_Exception

remove()

Removes an annotation from the annotation array of the page.

Parameters
$annotation : SetaPDF_Core_Document_Page_Annotation
 
Exceptions

Throws SetaPDF_Core_Type_Exception

setTabOrder()

public SetaPDF_Core_Document_Page_Annotations::setTabOrder (
string|null $tabOrder
): void

Set the tab order that shall be used for annotations on the page.

Parameters
$tabOrder : string|null
 
Exceptions

Throws SetaPDF_Core_Type_Exception