DynaPDF Manual - Page 258

Previous Page 257   Index   Next Page 259

Function Reference
Page 258 of 787
Specific flags supported by list boxes:
ffSorted
// Change the sort flag if necessary
ffMultiSelect // Enable multi selection
Remarks:
Interactive form fields can be structured into several groups by passing a handle of a group field to
the parameter Parent. See CreateGroupField() for further information.
Return values:
If the function succeeds the return value is the handle of the combo box, a value greater or equal
zero. If the function fails the return value is a negative error code.
CreateNamedAction
Syntax:
SI32 pdfCreateNamedAction(
const PPDF* IPDF,
// Instance pointer
TNamedAction Action) // Kind of action that should be executed
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;
The function creates a named action. Only PDF 1.2 compatible actions are documented in the PDF
Reference. So, all other actions may still work but there is no guarantee that these actions will be
supported in future versions of Adobe's Acrobat or Reader. Actions must be added to a PDF object
with AddActionToObj() so that they can be executed.
Return values:
If the function succeeds the return value is the action handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
 

Previous topic: CreateListBox

Next topic: CreateNamedDest

Start Chat