# Render Project documents as HTML, PDF, and image files This topic describes how to use the GroupDocs.Viewer .NET API (C#) to convert Microsoft Project files to HTML, PDF, PNG, and JPEG formats. [GroupDocs.Viewer for .NET](https://products.groupdocs.com/viewer/net) allows you to render Project files in HTML, PDF, PNG, and JPEG formats. You do not need to use Microsoft Project or other project management software to load and view Project files within your .NET application (web or desktop). To start using the GroupDocs.Viewer API, create a [Viewer](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer) class instance. Pass a document you want to view to the class constructor. You can load the document from a file or stream. Call one of the [Viewer.View](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/methods/view/index) method overloads to convert the document to HTML, PDF, or image format. These methods allow you to render the entire document or specific pages. {{< button style="primary" link="https://products.groupdocs.app/viewer/project" >}} {{< icon "gdoc_person" >}} View Project files online {{< /button >}} {{< button style="primary" link="https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET" >}} {{< icon "gdoc_github" >}} View demos and examples on GitHub {{< /button >}} ## Supported Project Management file formats GroupDocs.Viewer supports the following Project Management file formats: * [Microsoft Project](https://docs.fileformat.com/project-management/mpp) (.MPP) * [Microsoft Project Template](https://docs.fileformat.com/project-management/mpt) (.MPT) * [Microsoft Project Exchange File](https://docs.fileformat.com/project-management/mpx) (.MPX) GroupDocs.Viewer can detect the document format automatically based on information in the file header. {{< alert style="info" >}}On Linux, rendering Project Management files (MPP, MPT, and MPX) requires the Microsoft TrueType core fonts (the `ttf-mscorefonts-installer` package). Without them, rendering fails with `Cannot find fallback font 'Generic Sans Serif'`. See [System requirements]({{< ref "viewer/net/getting-started/system-requirements.md" >}}).{{< /alert >}} ## Render Project files as HTML Create an [HtmlViewOptions](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/htmlviewoptions) class instance and pass it to the [Viewer.View](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/methods/view/index) method to convert a Project file to HTML. The `HtmlViewOptions` class properties allow you to control the conversion process. For instance, you can embed all external resources in the generated HTML file, minify the output file, and optimize it for printing. Refer to the following documentation section for details: [Rendering to HTML]({{< ref "viewer/net/developer-guide/rendering-documents/rendering-to-html/_index.md" >}}). ### Create an HTML file with embedded resources To save all elements of an HTML page (including text, graphics, and stylesheets) into a single file, call the [HtmlViewOptions.ForEmbeddedResources](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/htmlviewoptions/methods/forembeddedresources/index) method and specify the output file name. {{< tabs "render-project-to-html">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Render the project's active view as HTML. // {0} is replaced with the current page number in the output file names. var viewOptions = HtmlViewOptions.ForEmbeddedResources("page_{0}.html"); viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") ' Render the project's active view as HTML. ' {0} is replaced with the current page number in the output file names. Dim viewOptions = HtmlViewOptions.ForEmbeddedResources("page_{0}.html") viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "page_1.html" >}} ```text HTML file (7.0 MB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectToHtml/page_1.html) {{< /tab >}} {{< /tabs >}} ### Create an HTML file with external resources If you want to store an HTML file and additional resource files (such as fonts, images, and stylesheets) separately, call the [HtmlViewOptions.ForExternalResources](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/htmlviewoptions/methods/forexternalresources/index) method and pass the following parameters: * The output file path format * The path format for the folder with external resources * The resource URL format {{< tabs "render-project-to-html-external">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Render the project's active view as HTML. // Specify the HTML file names and location of external resources. // {0} and {1} are replaced with the page number and resource name, respectively. var viewOptions = HtmlViewOptions.ForExternalResources("page_{0}.html", "page_{0}/resource_{0}_{1}", "page_{0}/resource_{0}_{1}"); viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") ' Render the project's active view as HTML. ' Specify the HTML file names and location of external resources. ' {0} and {1} are replaced with the page number and resource name, respectively. Dim viewOptions = HtmlViewOptions.ForExternalResources("page_{0}.html", "page_{0}/resource_{0}_{1}", "page_{0}/resource_{0}_{1}") viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "render-project-to-html-external.zip" >}} ```text page_1.html (81 KB) page_1/resource_1_f.ttf (1612 KB) page_1/resource_1_f1.ttf (1021 KB) page_1/resource_1_f2.ttf (1578 KB) page_1/resource_1_f3.ttf (967 KB) page_1/resource_1_g.svg (127 KB) page_1/resource_1_i.png (345 bytes) page_1/resource_1_i1.png (968 bytes) page_1/resource_1_i2.png (946 bytes) page_1/resource_1_i3.png (353 bytes) [TRUNCATED] (11 files total) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectToHtmlExternal/render-project-to-html-external.zip) {{< /tab >}} {{< /tabs >}} External resources are placed in a separate folder. ## Render Project files as PDF Create a [PdfViewOptions](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/pdfviewoptions) class instance and pass it to the [Viewer.View](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/methods/view/index) method to convert a Project file to PDF. The `PdfViewOptions` class properties allow you to control the conversion process. For instance, you can protect the output PDF file, reorder its pages, and specify the quality of document images. Refer to the following documentation section for details: [Rendering to PDF]({{< ref "viewer/net/developer-guide/rendering-documents/rendering-to-pdf/_index.md" >}}). {{< tabs "render-project-to-pdf">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Create a PDF file for the project's active view. var viewOptions = new PdfViewOptions("output.pdf"); viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") ' Create a PDF file for the project's active view. Dim viewOptions = New PdfViewOptions("output.pdf") viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "output.pdf" >}} ```text Binary file (PDF, 125 KB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectToPdf/output.pdf) {{< /tab >}} {{< /tabs >}} ## Render Project files as PNG Create a [PngViewOptions](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/pngviewoptions) class instance and pass it to the [Viewer.View](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/methods/view/index) method to convert a Project file to PNG. Use the [PngViewOptions.Height](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/pngviewoptions/properties/height) and [PngViewOptions.Width](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/pngviewoptions/properties/width) properties to specify the output image size in pixels. {{< tabs "render-project-to-png">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Render the project's active view as PNG. // {0} is replaced with the current page number in the output file names. var viewOptions = new PngViewOptions("output_{0}.png"); // Set width and height. viewOptions.Width = 1600; viewOptions.Height = 650; viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") ' Render the project's active view as PNG. ' {0} is replaced with the current page number in the output file names. Dim viewOptions = New PngViewOptions("output_{0}.png") ' Set width and height. viewOptions.Width = 1600 viewOptions.Height = 650 viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "output_1.png" >}} ```text Binary file (PNG, 259 KB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectToPng/output_1.png) {{< /tab >}} {{< /tabs >}} ## Render Project files as JPEG Create a [JpgViewOptions](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/jpgviewoptions) class instance and pass it to the [Viewer.View](https://reference.groupdocs.com/viewer/net/groupdocs.viewer/viewer/methods/view/index) method to convert a Project file to JPEG. Use the [JpgViewOptions.Height](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/jpgviewoptions/properties/height) and [JpgViewOptions.Width](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/jpgviewoptions/properties/width) properties to specify the output image size in pixels. {{< tabs "render-project-to-jpg">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Render the project's active view as JPEG. // {0} is replaced with the current page number in the output file names. var viewOptions = new JpgViewOptions("output_{0}.jpg"); // Set width and height. viewOptions.Width = 1600; viewOptions.Height = 650; viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") ' Render the project's active view as JPEG. ' {0} is replaced with the current page number in the output file names. Dim viewOptions = New JpgViewOptions("output_{0}.jpg") ' Set width and height. viewOptions.Width = 1600 viewOptions.Height = 650 viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "output_1.jpg" >}} ```text Binary file (JPG, 184 KB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectToJpg/output_1.jpg) {{< /tab >}} {{< /tabs >}} ## Get information about a Project file Follow the steps below to obtain information about a Project file (the file format, the number of pages, the project's start and end dates): 1. Create a [ViewInfoOptions](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/viewinfooptions) instance for a specific view. 2. Call the [Viewer.GetViewInfo](https://reference.groupdocs.com/net/viewer/groupdocs.viewer/viewer/methods/getviewinfo) method, pass the `ViewInfoOptions` instance to this method as a parameter, and cast the returned object to the [ProjectManagementViewInfo](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.results/projectmanagementviewinfo) type. 3. Use the `ProjectManagementViewInfo` class properties to retrieve information about the Project file. {{< tabs "get-project-info">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; using GroupDocs.Viewer.Results; // ... using (var viewer = new Viewer("sample.mpp")) { var viewInfoOptions = ViewInfoOptions.ForHtmlView(); var viewInfo = viewer.GetViewInfo(viewInfoOptions) as ProjectManagementViewInfo; if (viewInfo != null) { // Display information about the Project file. Console.WriteLine($"File type: {viewInfo.FileType}"); Console.WriteLine($"The number of pages: {viewInfo.Pages.Count}"); Console.WriteLine($"Project start date: {viewInfo.StartDate}"); Console.WriteLine($"Project end date: {viewInfo.EndDate}"); } } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options Imports GroupDocs.Viewer.Results ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") Dim viewInfoOptions = ViewInfoOptions.ForHtmlView() Dim viewInfo = TryCast(viewer.GetViewInfo(viewInfoOptions), ProjectManagementViewInfo) If viewInfo IsNot Nothing Then ' Display information about the Project file. Console.WriteLine($"File type: {viewInfo.FileType}") Console.WriteLine($"The number of pages: {viewInfo.Pages.Count}") Console.WriteLine($"Project start date: {viewInfo.StartDate}") Console.WriteLine($"Project end date: {viewInfo.EndDate}") End If End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "get-project-info.txt" >}} ```text File type: Microsoft Project File (.mpp) The number of pages: 1 Project start date: 9/7/2026 12:00:00 AM Project end date: 1/20/2027 12:00:00 AM ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/GetProjectInfo/get-project-info.txt) {{< /tab >}} {{< /tabs >}} ## Specify the output page size GroupDocs.Viewer allows you to specify page size for the output file when you convert your Project document to HTML, PDF, or image format. Assign a [PageSize](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/pagesize) enumeration member to the [ProjectManagementOptions.PageSize](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/projectmanagementoptions/properties/pagesize) property to select one of the predefined page sizes (Letter, Ledger, A0, A1, A2, A3, or A4). You can access this property for the following classes (depending on the output file format): * [HtmlViewOptions](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/htmlviewoptions) * [PdfViewOptions](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/pdfviewoptions) * [PngViewOptions](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/pngviewoptions) * [JpgViewOptions](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/jpgviewoptions) The following example specifies page size for the output PDF file: {{< tabs "render-project-with-page-size">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Convert the document to PDF. var viewOptions = new PdfViewOptions("output.pdf"); // Specify the page size. viewOptions.ProjectManagementOptions.PageSize = PageSize.A3; viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") ' Convert the document to PDF. Dim viewOptions = New PdfViewOptions("output.pdf") ' Specify the page size. viewOptions.ProjectManagementOptions.PageSize = PageSize.A3 viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "output.pdf" >}} ```text Binary file (PDF, 119 KB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectWithPageSize/output.pdf) {{< /tab >}} {{< /tabs >}} ## Adjust the time unit When rendering a Project file, GroupDocs.Viewer selects the smallest time unit on a timescale based on the total length of the project. You can adjust the timescale to show smaller or greater time units (from days to months). To do this, set the [ViewOptions.ProjectManagementOptions.TimeUnit](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/projectmanagementoptions/properties/timeunit) property for a target view to one of the following [TimeUnit](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/timeunit) enumeration members: * `Days` displays days on the timescale. * `ThirdsOfMonths` displays the Beginning/Middle/End (B/M/E) of each month on the timescale. * `Months` displays months on the timescale. * `Unspecified` means that the timescale unit is not specified. The following code sample demonstrates how to specify the timescale unit when rendering a Project file to HTML: {{< tabs "render-project-with-time-unit">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Convert the document to HTML. // {0} is replaced with the current page number in the file name. var viewOptions = HtmlViewOptions.ForEmbeddedResources("output_{0}.html"); // Specify the time unit. viewOptions.ProjectManagementOptions.TimeUnit = TimeUnit.ThirdsOfMonths; viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") ' Convert the document to HTML. ' {0} is replaced with the current page number in the file name. Dim viewOptions = HtmlViewOptions.ForEmbeddedResources("output_{0}.html") ' Specify the time unit. viewOptions.ProjectManagementOptions.TimeUnit = TimeUnit.ThirdsOfMonths viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "output_1.html" >}} ```text HTML file (6.9 MB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectWithTimeUnit/output_1.html) {{< /tab >}} {{< /tabs >}} ## Render specific dates With GroupDocs.Viewer, you can render only a portion of the project's timeline when you convert your Project file to HTML, PDF, or image format. Set the [ViewOptions.ProjectManagementOptions.StartDate](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/projectmanagementoptions/properties/startdate) and [ViewOptions.ProjectManagementOptions.EndDate](https://reference.groupdocs.com/net/viewer/groupdocs.viewer.options/projectmanagementoptions/properties/enddate) properties for a target view to specify a date range the timeline should display. If you set only the `StartDate` property, the timeline displays information for tasks from the specified date to the project's finish date. If you set only the `EndDate` property, the timeline contains dates from the project's start date to the specified date. The example below demonstrates how to convert a Project file to PDF and set the timeline date range. {{< tabs "render-project-specific-dates">}} {{< tab "C#" >}} ```csharp using System; using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Convert the document to PDF. var viewOptions = new PdfViewOptions("output.pdf"); // Specify the date range. viewOptions.ProjectManagementOptions.StartDate = new DateTime(2026, 10, 01); viewOptions.ProjectManagementOptions.EndDate = new DateTime(2026, 12, 01); viewer.View(viewOptions); } ``` {{< /tab >}} {{< tab "VB.NET">}} ```vb Imports System Imports GroupDocs.Viewer Imports GroupDocs.Viewer.Options ' ... Module Program Sub Main(args As String()) Using viewer = New Viewer("sample.mpp") ' Convert the document to PDF. Dim viewOptions = New PdfViewOptions("output.pdf") ' Specify the date range. viewOptions.ProjectManagementOptions.StartDate = New DateTime(2026, 10, 01) viewOptions.ProjectManagementOptions.EndDate = New DateTime(2026, 12, 01) viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "output.pdf" >}} ```text Binary file (PDF, 120 KB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectSpecificDates/output.pdf) {{< /tab >}} {{< /tabs >}} ## Render notes Microsoft Project allows you to add notes to tasks, resources, and assignments. ![Speaker notes in Microsoft PowerPoint](https://docs.groupdocs.com/viewer/net/images/rendering-basics/render-ms-project-files/project-task-notes.png) If you need to display these notes in the output HTML, PDF, or image files, enable the [ViewOptions.RenderNotes](https://reference.groupdocs.com/viewer/net/groupdocs.viewer.options/baseviewoptions/properties/rendernotes) property for a target view. The following code sample converts a Project file with task notes to PDF: {{< tabs "render-project-with-notes">}} {{< tab "C#" >}} ```csharp using GroupDocs.Viewer; using GroupDocs.Viewer.Options; // ... using (var viewer = new Viewer("sample.mpp")) { // Convert the document to PDF. var viewOptions = new PdfViewOptions("output.pdf"); // Enable notes rendering. viewOptions.RenderNotes = 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 = New Viewer("sample.mpp") ' Convert the document to PDF. Dim viewOptions = New PdfViewOptions("output.pdf") ' Enable notes rendering. viewOptions.RenderNotes = True viewer.View(viewOptions) End Using End Sub End Module ``` {{< /tab >}} {{< tab "sample.mpp" >}} {{< tab-text >}} `sample.mpp` is the sample file used in this example. Click [here](https://docs.groupdocs.com/viewer/net/_sample_files/rendering-basics/render-ms-project-files/sample.mpp) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "output.pdf" >}} ```text Binary file (PDF, 149 KB) ``` [Download full output](https://docs.groupdocs.com/viewer/net/_output_files/rendering-basics/render-ms-project-files/RenderProjectWithNotes/output.pdf) {{< /tab >}} {{< /tabs >}} Notes are rendered on a separate page.