# Optimize output for printing This article explains how to optimize output HTML for printing. To optimize HTML output for printing, use the [ForPrinting](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/htmlviewoptions/properties/forprinting) boolean property of the [HtmlViewOptions](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/htmlviewoptions) class. If the [ForPrinting](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/htmlviewoptions/properties/forprinting) option is enabled, the output HTML pages are converted to the vector SVG format. This option is supported for the following format families: * Presentation documents: PPT, PPS, PPTX, PPSX, ODP, FODP, OTP, POT, POTX, POTM, PPTM, PPSM * Diagram documents: VSD, VSDX, VSS, VST, VSX, VTX, VDW, VDX, VSSX, VSTX, VSDM, VSSM, VSTM * Meta file formats: WMF, WMZ, EMF, EMZ The following code snippet shows how to render a .docx document to HTML optimized for printing: {{< tabs "optimize-html-for-printing">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (Viewer viewer = new Viewer("sample.docx")) { // Create view options. var viewOptions = HtmlViewOptions.ForEmbeddedResources(); // Render a file optimized for printing. viewOptions.ForPrinting = true; viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer As Viewer = New Viewer("sample.docx") ' Create view options. Dim viewOptions = HtmlViewOptions.ForEmbeddedResources() ' Render a file optimized for printing. viewOptions.ForPrinting = True viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.docx" >}} {{< tab-text >}} `sample.docx` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/developer-guide/rendering-documents/rendering-to-html/optimize-html-for-printing/sample.docx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "optimize-html-for-printing.zip" >}} ```text p_1.html (228 KB) p_2.html (110 KB) p_3.html (142 KB) p_4.html (885 KB) p_5.html (86 KB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/developer-guide/rendering-documents/rendering-to-html/optimize-html-for-printing/OptimizeHtmlForPrinting/optimize-html-for-printing.zip) {{< /tab >}} {{< /tabs >}}