THotPDF.SetLoadedOCGVisibility Method

Controls the default visibility state of a specified optional content group (OCG, i.e., layer) in the loaded PDF

Declaration

procedure SetLoadedOCGVisibility(Index: Integer; AVisible: boolean);

Unit

HPDFDoc

Parameters

NamePurpose
IndexZero-based index of the OCG
AVisibleSet to True to switch the layer ON in the default configuration, False to switch it OFF

Return value

This member returns no value

Usage notes

Related APIs