setasign\SetaPDF2\Core\Document\Action
ResetAction Class representing a reset-form action
File: /SetaPDF v2/Core/Document/Action/ResetAction.php
Old class name (alias):
\SetaPDF_Core_Document_Action_ResetForm
Set fields to their default values. See PDF 32000-1:2008 - 12.7.5.3 Reset-Form Action
Class hierarchy
Summary
Constants
FLAG_EXCLUDE
Action flag
Properties
Static Methods
byObjectOrDictionary()
Creates an action object by an action dictionary.
Parameters
- $objectOrDictionary : \SetaPDF_Core_Type_IndirectObject|\SetaPDF_Core_Type_IndirectReference|\SetaPDF_Core_Type_Dictionary
Exceptions
Throws \setasign\SetaPDF2\Core\Type\Exception
Throws \InvalidArgumentException
createActionDictionary()
Methods
__construct()
The constructor.
Parameters
- $objectOrDictionary : string|\SetaPDF_Core_Type_Dictionary|\SetaPDF_Core_Type_IndirectObjectInterface
Exceptions
Throws \InvalidArgumentException
getFields()
Get the fields to include or exclude in the submission.
Parameters
- $encoding : string
The output encoding
Return Values
An array of field names in the specific encoding
Exceptions
getIndirectObject()
Get the indirect object of this annotation or creates it in the specific document context.
Parameters
- $document : ?\SetaPDF_Core_Document
The document instance
getNext()
Gets the PDF value of the next entry.
setFields()
Set which fields to reset or which to exclude from resetting, depending on the setting of the Include/Exclude flag.
Parameters
- $fields : ?array
An array of fully qualified names or an indirect object to a field dictionary
- $encoding : string
The input encoding
See
setFlags()
Sets a flag or flags.
Parameters
- $flags : int
- $add : ?bool
Add = true, remove = false, set = null
Exceptions
setIndirectObject()
Set the indirect object of this annotation.
Parameters
- $indirectReference : \SetaPDF_Core_Type_IndirectObjectInterface
setNext()
Set the next action which should be executed after this one.