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
| Name | Purpose |
|---|---|
LayerName | PDF resource name, packet name, profile name, or caller-defined identifier |
State | Input used by SetOCGState |
PreserveRadioButtonState | Input used by SetOCGState |
Return value
Returns a THPDFActionBuilder value
Usage notes
- Use this API in the PDF action builder workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized