Represents an action in a PDF document.
More...
#include <pdfsdk/cxx/action.h>
Represents an action in a PDF document.
ISO 32000-2:2020 - 12.6 Actions
◆ AddHideItemAnnot()
void PDF::Action::AddHideItemAnnot |
( |
Annot | annot | ) |
|
Adds an annotation to the Hide array of a Hide action.
- Parameters
-
annot | The annotation to add. |
◆ AddHideItemFieldName()
void PDF::Action::AddHideItemFieldName |
( |
const std::wstring & | name | ) |
|
Adds a field name to the Hide array of a Hide action.
- Parameters
-
name | The field name to add. |
◆ CreateFromPdfObject()
static Action PDF::Action::CreateFromPdfObject |
( |
const Object & | object | ) |
|
|
static |
Creates an Action object from a PDF object.
- Parameters
-
object | The PDF object representing the action. |
- Returns
- The created Action object.
◆ Equals()
bool PDF::Action::Equals |
( |
const Action & | that | ) |
const |
Checks if this Action is equal to another Action.
- Parameters
-
that | The other Action to compare. |
- Returns
true
if the Actions are equal, false
otherwise.
◆ GetActionType()
PDAtom PDF::Action::GetActionType |
( |
| ) |
const |
Gets the type of the action.
- Returns
- The action type.
◆ GetGoToDest()
Dest PDF::Action::GetGoToDest |
( |
| ) |
const |
Gets the destination of a GoTo action.
- Returns
- The destination.
◆ GetGoToEDest()
Dest PDF::Action::GetGoToEDest |
( |
| ) |
const |
Gets the destination of a GoToE action.
- Returns
- The destination.
◆ GetGoToEFileName()
std::wstring PDF::Action::GetGoToEFileName |
( |
| ) |
const |
Gets the file name of a GoToE action.
- Returns
- The file name.
◆ GetGoToEFileSpec()
FileSpec PDF::Action::GetGoToEFileSpec |
( |
| ) |
const |
Gets the file specification of a GoToE action.
- Returns
- The file specification.
◆ GetGoToENewWindow()
bool PDF::Action::GetGoToENewWindow |
( |
| ) |
const |
Checks if a GoToE action should open a new window.
- Returns
- True if a new window should be opened, false otherwise.
◆ GetGoToETarget()
Object PDF::Action::GetGoToETarget |
( |
| ) |
const |
Gets the target object of a GoToE action.
- Returns
- The target object.
◆ GetGoToRDest()
Dest PDF::Action::GetGoToRDest |
( |
| ) |
const |
Gets the destination of a GoToR action.
- Returns
- The destination.
◆ GetGoToRFileSpec()
FileSpec PDF::Action::GetGoToRFileSpec |
( |
| ) |
const |
Gets the file specification of a GoToR action.
- Returns
- The file specification.
◆ GetGoToRNewWindow()
bool PDF::Action::GetGoToRNewWindow |
( |
| ) |
const |
Checks if a GoToR action should open a new window.
- Returns
- True if a new window should be opened, false otherwise.
◆ GetHideItemAnnot()
Annot PDF::Action::GetHideItemAnnot |
( |
size_t | index | ) |
const |
Gets the annotation of the item at the specified index in the Hide array of a Hide action.
- Parameters
-
index | The index of the item. |
- Returns
- The annotation.
◆ GetHideItemFieldName()
std::wstring PDF::Action::GetHideItemFieldName |
( |
size_t | index | ) |
const |
Gets the field name of the item at the specified index in the Hide array of a Hide action.
- Parameters
-
index | The index of the item. |
- Returns
- The field name.
◆ GetHideItemType()
Gets the type of the item at the specified index in the Hide array of a Hide action.
- Parameters
-
index | The index of the item. |
- Returns
- The type of the item.
◆ GetHideNumItems()
size_t PDF::Action::GetHideNumItems |
( |
| ) |
const |
Gets the number of items in the Hide array of a Hide action.
- Returns
- The number of items in the Hide array.
◆ GetJavaScriptScript()
std::wstring PDF::Action::GetJavaScriptScript |
( |
| ) |
const |
Gets the JavaScript script of a JavaScript action.
- Returns
- The JavaScript script.
◆ GetLaunchFileSpec()
FileSpec PDF::Action::GetLaunchFileSpec |
( |
| ) |
const |
Gets the file specification of a Launch action.
- Returns
- The file specification.
◆ GetLaunchNewWindow()
bool PDF::Action::GetLaunchNewWindow |
( |
| ) |
const |
Checks if a Launch action should open a new window.
- Returns
- True if a new window should be opened, false otherwise.
◆ GetNamedName()
PDAtom PDF::Action::GetNamedName |
( |
| ) |
const |
Gets the named name of a Named action.
- Returns
- The named name.
◆ GetNext()
Action PDF::Action::GetNext |
( |
size_t | index | ) |
|
Gets the next action at the specified index.
- Parameters
-
index | The index of the next action. |
- Returns
- The next action.
◆ GetNextLength()
size_t PDF::Action::GetNextLength |
( |
| ) |
const |
Gets the length of the next actions array.
- Returns
- The length of the next actions array.
◆ GetPdfObject()
Object PDF::Action::GetPdfObject |
( |
| ) |
const |
Gets the PDF object associated with this Action.
- Returns
- The PDF object.
◆ GetURIIsMap()
bool PDF::Action::GetURIIsMap |
( |
| ) |
const |
Checks if a URI action is a map.
- Returns
- True if the URI action is a map, false otherwise.
◆ GetURIURI()
std::string PDF::Action::GetURIURI |
( |
| ) |
const |
Gets the URI of a URI action.
- Returns
- The URI.
◆ IsHideHiding()
bool PDF::Action::IsHideHiding |
( |
| ) |
const |
Checks if a Hide action is hiding.
- Returns
- True if the Hide action is hiding, false otherwise.
◆ RemoveHideItem()
void PDF::Action::RemoveHideItem |
( |
size_t | index | ) |
|
Removes the item at the specified index from the Hide array of a Hide action.
- Parameters
-
index | The index of the item to remove. |
◆ SetGoToDest()
void PDF::Action::SetGoToDest |
( |
const Dest & | destination | ) |
|
Sets the destination of a GoTo action.
- Parameters
-
destination | The destination. |
◆ SetGoToEDest()
void PDF::Action::SetGoToEDest |
( |
const Dest & | destination | ) |
|
Sets the destination of a GoToE action.
- Parameters
-
destination | The destination. |
◆ SetGoToEFileName()
void PDF::Action::SetGoToEFileName |
( |
const std::wstring & | filename | ) |
|
Sets the file name of a GoToE action.
- Parameters
-
◆ SetGoToEFileSpec()
void PDF::Action::SetGoToEFileSpec |
( |
const FileSpec & | filespec | ) |
|
Sets the file specification of a GoToE action.
- Parameters
-
filespec | The file specification. |
◆ SetGoToENewWindow()
void PDF::Action::SetGoToENewWindow |
( |
bool | newWindow | ) |
|
Sets whether a GoToE action should open a new window.
- Parameters
-
newWindow | True to open a new window, false otherwise. |
◆ SetGoToETarget()
void PDF::Action::SetGoToETarget |
( |
const Object & | target | ) |
|
Sets the target object of a GoToE action.
- Parameters
-
◆ SetGoToRDest()
void PDF::Action::SetGoToRDest |
( |
const Dest & | destination | ) |
|
Sets the destination of a GoToR action.
- Parameters
-
destination | The destination. |
◆ SetGoToRFileSpec()
void PDF::Action::SetGoToRFileSpec |
( |
const FileSpec & | filespec | ) |
|
Sets the file specification of a GoToR action.
- Parameters
-
filespec | The file specification. |
◆ SetGoToRNewWindow()
void PDF::Action::SetGoToRNewWindow |
( |
bool | newWindow | ) |
|
Sets whether a GoToR action should open a new window.
- Parameters
-
newWindow | True to open a new window, false otherwise. |
◆ SetHideHiding()
void PDF::Action::SetHideHiding |
( |
bool | isHiding | ) |
|
Sets whether a Hide action is hiding.
- Parameters
-
isHiding | True if the Hide action is hiding, false otherwise. |
◆ SetJavaScriptScript()
void PDF::Action::SetJavaScriptScript |
( |
const std::wstring & | script | ) |
|
Sets the JavaScript script of a JavaScript action.
- Parameters
-
script | The JavaScript script. |
◆ SetLaunchFileSpec()
void PDF::Action::SetLaunchFileSpec |
( |
const FileSpec & | filespec | ) |
|
Sets the file specification of a Launch action.
- Parameters
-
filespec | The file specification. |
◆ SetLaunchNewWindow()
void PDF::Action::SetLaunchNewWindow |
( |
bool | newWindow | ) |
|
Sets whether a Launch action should open a new window.
- Parameters
-
newWindow | True to open a new window, false otherwise. |
◆ SetNamedName()
void PDF::Action::SetNamedName |
( |
PDAtom | name | ) |
|
Sets the named name of a Named action.
- Parameters
-
◆ SetNext()
void PDF::Action::SetNext |
( |
const Action & | next | ) |
|
Sets the next action.
- Parameters
-
◆ SetNextArray()
void PDF::Action::SetNextArray |
( |
const std::vector< Action > & | next | ) |
|
Sets an array of next actions.
- Parameters
-
next | The array of next actions. |
◆ SetURIIsMap()
void PDF::Action::SetURIIsMap |
( |
bool | isMap | ) |
|
Sets whether a URI action is a map.
- Parameters
-
isMap | True if the URI action is a map, false otherwise. |
◆ SetURIURI()
void PDF::Action::SetURIURI |
( |
const std::string & | uri | ) |
|
Sets the URI of a URI action.
- Parameters
-
The documentation for this class was generated from the following file: