What I can't do and is an absolute must is to be able to turn on a layer of my choosing in the viewer. I have tried to set the states on the config context, tried setting current and initial state on each OC group. And of course with each of my attempts I, at the end, update the PDFViewWPF viewer to reset to the document and to Update the Page Layout.
All I get is still just the initial drawing with no layers turned on. I also saw mention of a layers panel with the viewer, yet I can not find how to turn this on either.
Config init_cfg = doc.GetOCGConfig();
Context ctx = new Context(init_cfg);
After calling SetOCGContext, you will want to call Update method to refresh the viewer.Along with the PDFNet SDK for .Net there is also the regular PDFViewCtrl class, and samples, and these samples include a layers ui from which you can turn on/off layers. If you are having problems you may want to try the sample and verify exactly what each OCG layer is doing for the particular file(s) you are using.
You received this message because you are subscribed to the "PDFTron PDFNet SDK" group (http://www.pdftron.com/pdfnet/forum.html).
You received this message because you are subscribed to a topic in the Google Groups "PDFTron PDFNet SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pdfnet-sdk/nLxPoUh2zWA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pdfnet-sdk+...@googlegroups.com.
To post to this group, send email to pdfne...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.