Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Changes the visibility state of an OCG or layer.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 9.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Handle | The OCG handle. Index from 0 to DynaPDF.GetOCGCount-1. |
$OCG | |
On | Wished state: 1 = visible, 0 = invisible | 1 | |
SaveState | Whether to save the state in the PDF file? Pass 1 to save or 0 to only switch temporarly. Default 0. |
1 | Optional |
Returns OK or error.
See also SetOCGState function in DynaPDF manual.
This function checks for a license.
Created 18th February 2019, last changed 18th February 2019