Add layers to PDF
This samples shows how to create layers (also known as optional content groups) in a PDF document.
The PdfDocument class provides CreateLayer methods. You can use these methods to create layers in a PDF document. All created layers are automatically added to collection of document layers.