Render with responsive layout

Responsive design aims to make web pages render well on a variety of devices. GroupDocs.Viewer provides the RenderResponsive property of the HtmlViewOptions class to render HTML pages with responsive layout.

The following code snippet shows how to render a .docx document to HTML with responsive layout:

using (Viewer viewer = new Viewer("sample.docx"))
    // Create an HTML file.
    var viewOptions = HtmlViewOptions.ForEmbeddedResources();
    // Render the file with responsive layout.
    viewOptions.RenderResponsive = true;