pdfGetNumLayers

Get the number of layers.
int pdfGetNumLayers(PDFHandle pdf)
This function returns the number of layers in the PDF file.

Layers are numbered 0 through n-1 (where n is the value returned by pdfGetNumLayers).

Note that many PDF files have zero layers, meaning that there is no content that can be selectively turned on or off. (This is different from some other formats which always have at least one layer.)

C:
int n; n = pdfGetNumLayers(pdf);
pdfGetLayer
pdfGetLayerName
pdfGetLayerVisibility
pdfSetLayerVisibility
pdfGetLayerViewState
pdfGetLayerPrintState