EnumOptionalContentMembershipGroups

Content Streams and Optional Content Groups

Description

Enumerates the optional-content groups stored in the selected membership dictionary

Syntax

Function TPDFlib.EnumOptionalContentMembershipGroups(MembershipID: Integer; Out OptionalContentGroupIDs: Array Of Integer): Integer;

Parameters

MembershipIDOptional-content membership dictionary handle; an invalid handle returns 0
OptionalContentGroupIDsOutput array that receives group handles normalized to the selected document; pass an empty array to query the required capacity, and only the available entries are written

Return values

Returns the complete valid group count, including items beyond the supplied output capacity, or 0 for an invalid membership

Remarks

Call with an empty output array to obtain the required capacity, then call again to fill group handles normalized to the selected document

See also

NewOptionalContentMembership, EnumOptionalContentMembershipExpression