SetPageActionMenuA
Page properties
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetPageActionMenu and string arguments are interpreted using the current SetAnsiMode code page
Specifies a menu item to run when the document is first opened
This writes a page additional-action dictionary (/AA) with a named action. Page /AA entries require PDF 1.5. If the current document version is lower and the save version is not locked, the library automatically raises the document to PDF 1.5 and records Page /AA (page triggers) in AutoBumpedFeatures. If the caller locks a lower save version, the compatibility gate rejects the save with LastErrorCode 602.
Syntax
Delphi
Function DLSetPageActionMenuA(InstanceID: Integer; MenuItem: PAnsiChar): Integer;
DLL
int DLSetPageActionMenuA(int InstanceID, const char * MenuItem);
Parameters
| MenuItem | The MenuItem to call, for example "Print" |
|---|
Return values
| 0 | The open action could not be set, there is a problem with the document |
|---|---|
| 1 | The page open action was set successfully |