SetAnnotOptional
Annotations and hotspot links, Content Streams and Optional Content Groups
Description
This allows the annotation to be made visible or hidden using the layers functionality within the PDF viewer.
Syntax
Delphi
Function TPDFlib.SetAnnotOptional(Index, OptionalContentGroupID: Integer): Integer;
ActiveX
Function PDFlib::SetAnnotOptional(Index As Long, OptionalContentGroupID As Long) As Long
DLL
int DLSetAnnotOptional(int InstanceID, int Index, int OptionalContentGroupID);
Parameters
| Index | The one-based annotation index on the selected page |
|---|---|
| OptionalContentGroupID | An optional-content group handle or a membership handle returned by NewOptionalContentMembership |
Return values
| 0 | The annotation could not be added to the specified optional content group |
|---|---|
| 1 | Success |