PdfOptionsRenderLayersSeparately Property
Specifies whether PDF document layers have to be separated when rendering into HTML. The default value is false.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public bool RenderLayersSeparately { get; set; }

Property Value

Type: Boolean
When rendering layered PDF documents into HTML, by default all layers are rendered as one. Enable layers separate rendering in order to group each PDF layer into separate elements, so that layers can be manipulated using Javascript.
The following example demonstrates how to enable layers separate rendering.
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler();        
HtmlOptions options = new HtmlOptions();
options.PdfOptions.RenderLayersSeparately = true;

string guid = "multilayered.pdf";
List<PageHtml> pages = htmlHandler.GetPages(guid, options);
See Also