THotPDF.RegisterOptionalContentGroup Method

Registers a reusable optional content group resource for the document creation workflow. Call it before page commands reference the resource name so color, pattern, font, image, or profile data is available in the PDF resource tree

Declaration

function RegisterOptionalContentGroup(const LayerName: AnsiString; VisibleByDefault: boolean= True; UserToggleAllowed: boolean= True): AnsiString;

Unit

HPDFDoc

Parameters

NamePurpose
LayerNamePDF resource name, packet name, profile name, or caller-defined identifier
VisibleByDefaultInput used by RegisterOptionalContentGroup
UserToggleAllowedInput used by RegisterOptionalContentGroup

Return value

Returns an AnsiString value

Usage notes

Related APIs