Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 414

Previous Page 413   Index   Next Page 415

Function Reference
Page 414 of 750
SI32
Annot;
// Optional. The movie annotation handle identifying the
// movie that shall be played.
float
FWPosition[2];
// FWPosition.
UI32
FWScale[2];
// FWScale.
const char*
Mode;
// Mode.
SI32
NextAction;
// -1 or next action handle to be executed if any.
TActionType
NextActionType; // Only set if NextAction is >= 0.
const char*
Operation;
// Operation.
float
Rate;
// Rate.
LBOOL
ShowControls;
// ShowControls.
LBOOL
Synchronous;
// Synchronous.
const char*
TitleA;
// The title of a movie annotation that shall be played.
// Either Annot or Title should be set, but not both.
const UI16* TitleW;
// Either the Ansi or Unicode string is set at time.
float
Volume;
// Volume.
};
The function retrieves the properties of a Movie action. The member StructSize must be set to
sizeof(TPDFMovieAction) before the function can be called.
The member FWScale is in the format numerator / denominator.
Return Values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetNamedAction
LBOOL pdfGetNamedAction(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Action handle
struct TPDFNamedAction* Action) // see below
struct TPDFNamedAction
{
UI32
StructSize;
// Must be set to sizeof(TPDFNamedAction).
const char*
Name;
// Only set if Type == naUserDefined.
SI32
NewWindow;
// -1 = viewer default, 0 = false, 1 = true.
SI32
NextAction;
// -1 or next action handle to be executed if any.
TActionType
NextActionType; // Only set if NextAction is >= 0.
TNamedAction Type;
// Known pre-defined actions.
};
typedef enum
{
naFirstPage,
// PDF 1.2 Go to the first page of the document
naLastPage,
// PDF 1.2 Go to the last page of the document
naNextPage,
// PDF 1.2 Go to the next page
naPrevPage,
// PDF 1.2 Go to the previous page
naGoBack,
// Go back to last page and position
naOpenDlg,
// Display the file open dialog
naPrintDlg,
// Display the print dialog
naGeneralInfo,
// Display the general info tab
naFontsInfo,
// Display the fonts info tab
naSaveAs,
// Display the save as dialog (requires Acrobat)
naSecurityInfo, // Display the security settings
naFitPage,
// Fit the page into the window
naDeletePages,
// Delete one or more pages
naQuit,
// Quit the application
naUserDefined
// Internal value to store unknown imported values
}TNamedAction;
 

Previous topic: GetMovieAction

Next topic: GetNamedDestCount