THotPDF.AddPDFELayer Method
Adds a PDF/E optional-content layer 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 supplied to AddPDFELayer |
IntentName | PDF resource name, packet name, profile name or caller-defined identifier |
UserToggleAllowed | Input supplied to AddPDFELayer |
Return value
Returns a THPDFDictionaryObject value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised