THotPDF.AddPDFELayer Method
Adds pdf elayer data to the document creation workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
function AddPDFELayer(const LayerName: AnsiString; VisibleByDefault: boolean= True; const IntentName: AnsiString= 'View'; UserToggleAllowed: boolean= True): THPDFDictionaryObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
LayerName | PDF resource name, packet name, profile name, or caller-defined identifier |
VisibleByDefault | Input used by AddPDFELayer |
IntentName | PDF resource name, packet name, profile name, or caller-defined identifier |
UserToggleAllowed | Input used by AddPDFELayer |
Return value
Returns a THPDFDictionaryObject value
Usage notes
- Use this API in the document creation 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