setasign\SetaPDF2\Core\Document\Action
NamedAction Class representing a Named action
File: /SetaPDF v2/Core/Document/Action/NamedAction.php
Old class name (alias):
\SetaPDF_Core_Document_Action_Named
Execute an action predefined by the conforming reader. See PDF 32000-1:2008 - 12.6.4.11
Class hierarchy
Summary
Constants
FIRST_PAGE
Name defined in PDF 32000-1:2008
GO_BACK
Additional names used by Adobe Acrobat: Previous View
GO_TO_PAGE
Additional names used by Adobe Acrobat
LAST_PAGE
Name defined in PDF 32000-1:2008
NEXT_PAGE
Name defined in PDF 32000-1:2008
PREV_PAGE
Name defined in PDF 32000-1:2008
PRINT_DOCUMENT
Additional names used by Adobe Acrobat: Print
Properties
Static Methods
byObjectOrDictionary()
Creates an action object by an action dictionary.
Parameters
- $objectOrDictionary: (\setasign\SetaPDF2\Core\Type\AbstractType & \setasign\SetaPDF2\Core\Type\IndirectObjectInterface)|\setasign\SetaPDF2\Core\Type\PdfDictionary
Exceptions
Throws \setasign\SetaPDF2\Core\Type\Exception
Throws \InvalidArgumentException
createActionDictionary()
Create a named action dictionary.
Parameters
- $name: string
Exceptions
Throws \InvalidArgumentException
Methods
__construct()
The constructor.
Parameters
- $objectOrDictionary: string|\setasign\SetaPDF2\Core\Type\PdfDictionary|\setasign\SetaPDF2\Core\Type\IndirectObjectInterface
Exceptions
Throws \InvalidArgumentException
getIndirectObject()
Get the indirect object of this annotation or creates it in the specific document context.
Parameters
- $document: ?\setasign\SetaPDF2\Core\Document
The document instance
getNext()
Gets the PDF value of the next entry.
setIndirectObject()
Set the indirect object of this annotation.
Parameters
setNext()
Set the next action which should be executed after this one.
