Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Creates an Optional Content Group (OCG) also called layer.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 11.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Name | Layer name (required) | "test" |
DisplayInUI | Display the OCG in the user interface? Pass 1 to show and 0 to hide. |
1 |
Visible | Intitial state of the OCG. Pass 1 to show and 0 to hide. |
1 |
Intent | The intent for the layer. Pass Design, View or All. |
"all" |
Returns handle number or error.
See also CreateOCG function in DynaPDF manual.
This function checks for a license.
Created 5th October 2021, last changed 5th October 2021