Add XObjects to layers
This samples shows how to add XObjects (watermarks) to layers in a PDF document.
PdfXObject classe has Layer property. All you need to do to associate an XObject with a layer is to assign the layer to the property.
To remove XObject from a layer you only need to set the XObject property to null.