SetaPDF_Core_Document_Page_Annotations Helper class for handling annotations of a page

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

Class hierarchy

Summary

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.

getArray()

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

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

Parameters
$create : boolean
 

getByName()

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

Get an annotation by its name (NM entry)

Parameters
$name : string

The name of the annotation.

$encoding : string
 

remove()

Removes an annotation from the annotation array of the page.

Parameters
$annotation : SetaPDF_Core_Document_Page_Annotation