setasign\SetaPDF2\Core\Document\Action

SubmitFormAction Class representing a submit-form action

File: /SetaPDF v2/Core/Document/Action/SubmitFormAction.php
Old class name (alias): \SetaPDF_Core_Document_Action_SubmitForm

Send data to a uniform resource locator. See PDF 32000-1:2008 - 12.7.5.2 Submit-Form Action

Class hierarchy

Summary

Constants

FLAG_CANONICAL_FORMAT

Action flag

FLAG_EMBED_FORM

public const SubmitFormAction::FLAG_EMBED_FORM = 16384

Action flag

FLAG_EXCLUDE

public const SubmitFormAction::FLAG_EXCLUDE = 1

Action flag

FLAG_EXCL_FKEY

public const SubmitFormAction::FLAG_EXCL_FKEY = 4096

Action flag

FLAG_EXCL_NON_USER_ANNOTS

Action flag

FLAG_EXPORT_FORMAT

Action flag

FLAG_GET_METHOD

Action flag

FLAG_INCLUDE_ANNOTATIONS

Action flag

FLAG_INCLUDE_APPEND_SAVES

Action flag

FLAG_INCLUDE_NO_VALUE_FIELDS

Action flag

FLAG_SUBMIT_COORDINATES

Action flag

FLAG_SUBMIT_PDF

public const SubmitFormAction::FLAG_SUBMIT_PDF = 256

Action flag

FLAG_XFDF

public const SubmitFormAction::FLAG_XFDF = 32

Action flag


Properties

$_actionDictionary

The action dictionary


Static Methods


Methods

addNext()

Add an additional action to the next value of this action.

Parameters
$next : \SetaPDF_Core_Type_Dictionary|\SetaPDF_Core_Document_Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getActionDictionary()

Get the action dictionary.

getCharSet()

public SubmitFormAction::getCharSet (
void
): ?mixed

Get the char set in which the data should be transfered (PDF 2.0)

getFields()

public FormAction::getFields (
string $encoding = 'UTF-8'
): ?array

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

Throws \setasign\SetaPDF2\Core\Type\Exception

getFileSpecification()

Get the file specification object.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getFlags()

public FormAction::getFlags (
void
): int

Returns the current flags.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

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()

getPdfValue()

Get the PDF value of this action.

getType()

public Action::getType (
void
): string

Get the action type specified in the S key.

isFlagSet()

public FormAction::isFlagSet (
int $flag
): bool

Checks if a specific flag is set.

Parameters
$flag : int
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setCharSet()

public SubmitFormAction::setCharSet (
string|\SetaPDF_Core_Type_StringValue|false $charSet
): void

Set the char set in which the data should be transfered (PDF 2.0)

Possible values include: utf-8, utf-16, Shift-JIS, BigFive, GBK, or UHC.

Parameters
$charSet : string|\SetaPDF_Core_Type_StringValue|false
 

setFields()

public FormAction::setFields (
?array $fields = null,
string $encoding = 'UTF-8'
): void

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

setFileSpecification()

public SubmitFormAction::setFileSpecification (
string|\SetaPDF_Core_FileSpecification $fileSpecification
): void

Seta a file specification object.

Parameters
$fileSpecification : string|\SetaPDF_Core_FileSpecification
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setFlags()

public FormAction::setFlags (
int $flags,
?bool $add = true
): void

Sets a flag or flags.

Parameters
$flags : int
 
$add : ?bool

Add = true, remove = false, set = null

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setIndirectObject()

Set the indirect object of this annotation.

Parameters
$indirectReference : \SetaPDF_Core_Type_IndirectObjectInterface
 

unsetFlags()

public FormAction::unsetFlags (
int $flags
): void

Removes a flag or flags.

Parameters
$flags : int
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception