Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetOCGCount
Returns the number of OCGs or layers which are available in document.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 9.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.GetOCGCount"; PDF ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. |
Result
Returns count or error.
Description
Returns the number of OCGs or layers which are available in document.See also GetOCGCount function in DynaPDF manual.
Examples
Query count of layers:
Set Variable [ $count ; Value: MBS ( "DynaPDF.GetOCGCount" ; $pdf ) ]
See also
- DynaPDF.GetAnnotCount
- DynaPDF.GetCMapCount
- DynaPDF.GetContent
- DynaPDF.GetFieldCount
- DynaPDF.GetFontCount
- DynaPDF.GetImageCount
- DynaPDF.GetOCG
- DynaPDF.GetPageCount
- DynaPDF.GetTemplCount
- DynaPDF.New
Release notes
- Version 9.1
- Added DynaPDF.GetOCG, DynaPDF.GetOCGContUsage, DynaPDF.GetOCGCount, DynaPDF.GetOCGUsageUserName and DynaPDF.SetOCGState functions for PDF layers.
Blog Entries
This function checks for a license.
Created 18th February 2019, last changed 18th February 2019