setLayerVisibility

Set the visibility state of a layer.
setLayerVisibility([in] LONG layerHandle, [in] VARIANT_BOOL visibility)
This function sets the visibility state of a layer. The visibility argument should be true to make the layer visible, or false to make it not visible.

The layer argument is an opaque layer handle, returned by getLayer.

VB6:
layer = pdf.getLayer(i) ' toggle the layer If pdf.getLayerVisibility(layer) Then pdf.setLayerVisibility layer, False Else pdf.setLayerVisibility layer, True End If
getNumLayers
getLayer
getLayerName
getLayerVisibility
getLayerViewState
getLayerPrintState