SetPageActionMenu

Page properties

Description

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 TPDFlib.SetPageActionMenu(Const MenuItem: WideString): Integer;

ActiveX

Function PDFlib::SetPageActionMenu(MenuItem As String) As Long

DLL

int DLSetPageActionMenu(int InstanceID, wchar_t * MenuItem);

Parameters

MenuItemThe MenuItem to call, for example "Print"

Return values

0The open action could not be set, there is a problem with the document
1The page open action was set successfully