THPDFActionBuilder.SetOCGState Method

Sets ocgstate state for subsequent PDF action builder output. The setting affects later page drawing, page dictionary entries, conformance metadata, or text emission rather than already-written content

Declaration

class function SetOCGState(const LayerName: AnsiString; State: THPDFOCGActionState; PreserveRadioButtonState: boolean= True): THPDFActionBuilder;

Unit

HPDFDoc

Parameters

NamePurpose
LayerNamePDF resource name, packet name, profile name, or caller-defined identifier
StateInput used by SetOCGState
PreserveRadioButtonStateInput used by SetOCGState

Return value

Returns a THPDFActionBuilder value

Usage notes

Related APIs