SetCapturedPageOptional

Content Streams and Optional Content Groups, Page layout

Description

Links the captured page to an optional content group. This allows the captured page to be selectively shown in Acrobat 6 or later.

Syntax

Delphi

function TPDFlib.SetCapturedPageOptional(CaptureID, OptionalContentGroupID: Integer): Integer;

ActiveX

Function PDFlib::SetCapturedPageOptional(CaptureID As Long, OptionalContentGroupID As Long) As Long

DLL

int DLSetCapturedPageOptional(int InstanceID, int CaptureID, int OptionalContentGroupID);

Parameters

CaptureIDThe ID returned by the CapturePage function when a page was previously captured
OptionalContentGroupIDAn ID returned by the NewOptionalContentGroup, GetOptionalContentGroupID or GetOptionalContentConfigOrderItemID functions

Return values

0The CaptureID or OptionalContentGroupID parameters were not valid
1The captured page was linked to the optional content group successfully