BeginOptionalContent

Content Streams and Optional Content Groups

Description

Begins an optional-content drawing scope on the selected page using an optional-content group or membership dictionary

Reference page for BeginOptionalContent. The function belongs to Content Streams and Optional Content Groups and keeps all identifiers exactly as shown

Syntax

Delphi

Function TPDFlib.BeginOptionalContent(OptionalContentGroupID: Integer): Integer;

ActiveX

Function PDFlib::BeginOptionalContent(OptionalContentGroupID As Long) As Long

DLL

int DLBeginOptionalContent(int InstanceID, int OptionalContentGroupID);

Parameters

OptionalContentGroupIDAn optional-content group handle or a membership handle returned by NewOptionalContentMembership

Return values

0The OptionalContentGroupID parameter was not valid or no document was available
1The optional-content drawing scope was opened successfully

Remarks

A membership handle applies its /VE expression when supported and retains /OCGs plus /P as a compatibility fallback