Q: I have a PDF with some optional content (i.e Layers or OCGs).
When I view file in Acrobat I see different image (i.e. layers) then when using PDFDraw in PDFNet. Several of the parts of the file are turned off but PDFNet is ignoring that.
How do I select which layers to render?
A: To take into account the current layer setting you need to set the current OCG Content using pdftron.PDF.PDFDraw.SetOCGContext().
For a relevant sample code, project please see PDFLayers: