Layers
Informations
Author: Olivier
License: FPDF
Description
This script allows to define layers in the PDF. A layer is defined with this method:
int AddLayer(string name [, boolean isUTF8 [, boolean visible]])
name: the name of the layer
isUTF8: indicates if the name is encoded in ISO-8859-1 (false) or UTF-8
(true). Default value: false.
visible: indicates if the layer is initially visible (default value: true)
It returns an identifier that you can pass to BeginLayer() to start the layer. Then all
the content you add to the page belongs to that layer until you call EndLayer().
The OpenLayerPane() method is also provided to force the PDF viewer to open the layer
pane when the document is loaded.
Note: layers are not supported by all PDF viewers.