setasign\SetaPDF2\Core\Document\Action

GoToRAction Class representing a remote go-to action.

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

Go to a destination in another PDF file instead of the current file. See PDF 32000-1:2008 - 12.6.4.3

Class hierarchy

Summary

Properties

$_actionDictionary


Static Methods


Methods

addNext()

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

Parameters
$next : \setasign\SetaPDF2\Core\Type\PdfDictionary|Action
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getActionDictionary()

Get the action dictionary.

getDestination()

Get the destination object.

Parameters
$document : ?\setasign\SetaPDF2\Core\Document
 
Exceptions

Throws \BadMethodCallException

getFile()

Get the file in which the destination shall be located.

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 : ?\setasign\SetaPDF2\Core\Document

The document instance

getNewWindow()

public GoToRAction::getNewWindow (
void
): ?bool

Get the flag specifying whether to open the destination document in a new window.

Return Values

A bool value if specified. Otherwise "null".

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getPdfValue()

Get the PDF value of this action.

getType()

public Action::getType (
void
): string

Get the action type specified in the S key.

setFile()

Set the file in which the destination shall be located.

Parameters
$file : \setasign\SetaPDF2\Core\FileSpecification|string
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setIndirectObject()

Set the indirect object of this annotation.

Parameters
$indirectReference : \setasign\SetaPDF2\Core\Type\IndirectObjectInterface
 

setNewWindow()

public GoToRAction::setNewWindow (
?bool $newWindow
): void

Set the flag specifying whether to open the destination document in a new window.

Parameters
$newWindow : ?bool

Whether to open the destination in a new window or not. To use the reader preferences remove this flag by passing "null".