PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
action.h
Go to the documentation of this file.
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_ACTION_H_INCLUDED_
4#define PDFSDK_CXX_PDF_ACTION_H_INCLUDED_
5
11#include <string>
12#include <vector>
13
14#include <pdfsdk/core/actions.h>
15
16#include "forward_declarations.h"
17#include "wrapper_base.h"
18
19namespace PDF {
20
32class Action : public detail::RefCountedHandle<PDAction> {
33public:
39 static Action CreateFromPdfObject(const Object& object);
40
46
52 bool Equals(const Action& that) const;
53
58 PDAtom GetActionType() const;
59
65 void SetNext(const Action& next);
66
72 void SetNextArray(const std::vector<Action>& next);
73
79 size_t GetNextLength() const;
80
86 Action GetNext(size_t index);
87
98
108 void SetGoToDest(const Dest& destination);
109
119
128 void SetGoToRFileSpec(const FileSpec& filespec);
129
138
146 void SetGoToRDest(const Dest& destination);
147
156 bool GetGoToRNewWindow() const;
157
166 void SetGoToRNewWindow(bool newWindow);
167
175 std::wstring GetGoToEFileName() const;
176
185 void SetGoToEFileName(const std::wstring& filename);
186
196
205 void SetGoToETarget(const Object& target);
206
217
227 void SetGoToEFileSpec(const FileSpec& filespec);
228
238
247 void SetGoToEDest(const Dest& destination);
248
258 bool GetGoToENewWindow() const;
259
269 void SetGoToENewWindow(bool newWindow);
270
281
291 void SetLaunchFileSpec(const FileSpec& filespec);
292
302 bool GetLaunchNewWindow() const;
303
313 void SetLaunchNewWindow(bool newWindow);
314
324 std::string GetURIURI() const;
325
335 void SetURIURI(const std::string& uri);
336
344 bool GetURIIsMap() const;
345
353 void SetURIIsMap(bool isMap);
354
363 size_t GetHideNumItems() const;
364
373 void RemoveHideItem(size_t index);
374
385
395 Annot GetHideItemAnnot(size_t index) const;
396
409 std::wstring GetHideItemFieldName(size_t index) const;
410
421
432 void AddHideItemFieldName(const std::wstring& name);
433
442 bool IsHideHiding() const;
443
452 void SetHideHiding(bool isHiding);
453
464 PDAtom GetNamedName() const;
465
477 void SetNamedName(PDAtom name);
478
489 std::wstring GetJavaScriptScript() const;
490
501 void SetJavaScriptScript(const std::wstring& script);
502
503 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(Action, PDAction)
504};
505
506} // namespace PDF
507
508#include "action_impl.inl"
509
510#endif // PDFSDK_CXX_PDF_ACTION_H_INCLUDED_
Action API.
PDActionHideItemType
Defines actions that can hide or show specific elements within a PDF document.
Definition actions.h:47
Represents an action in a PDF document.
Definition action.h:32
void SetURIURI(const std::string &uri)
void SetGoToDest(const Dest &destination)
bool GetLaunchNewWindow() const
void SetGoToENewWindow(bool newWindow)
void SetNamedName(PDAtom name)
FileSpec GetGoToRFileSpec() const
void SetGoToRNewWindow(bool newWindow)
bool IsHideHiding() const
void AddHideItemAnnot(Annot annot)
Annot GetHideItemAnnot(size_t index) const
void SetGoToEFileSpec(const FileSpec &filespec)
void SetLaunchNewWindow(bool newWindow)
void SetGoToRFileSpec(const FileSpec &filespec)
PDAtom GetActionType() const
void SetURIIsMap(bool isMap)
Object GetGoToETarget() const
Object GetPdfObject() const
static Action CreateFromPdfObject(const Object &object)
void AddHideItemFieldName(const std::wstring &name)
bool GetURIIsMap() const
std::wstring GetJavaScriptScript() const
bool Equals(const Action &that) const
FileSpec GetGoToEFileSpec() const
Dest GetGoToRDest() const
bool GetGoToRNewWindow() const
void SetHideHiding(bool isHiding)
FileSpec GetLaunchFileSpec() const
void SetGoToRDest(const Dest &destination)
PDAtom GetNamedName() const
std::wstring GetGoToEFileName() const
std::string GetURIURI() const
size_t GetNextLength() const
Dest GetGoToDest() const
void SetNextArray(const std::vector< Action > &next)
void SetGoToETarget(const Object &target)
void SetNext(const Action &next)
Dest GetGoToEDest() const
void SetGoToEDest(const Dest &destination)
Action GetNext(size_t index)
void RemoveHideItem(size_t index)
void SetLaunchFileSpec(const FileSpec &filespec)
std::wstring GetHideItemFieldName(size_t index) const
void SetGoToEFileName(const std::wstring &filename)
void SetJavaScriptScript(const std::wstring &script)
size_t GetHideNumItems() const
PDActionHideItemType GetHideItemType(size_t index) const
bool GetGoToENewWindow() const
Represents an annotation in a PDF document.
Definition annot.h:24
Represents a destination in a PDF document.
Definition dest.h:31
Specifies an external file which is referred to inside a PDF document.
Definition filespec.h:29
Represents a PDF object.
Definition object.h:20