Document rendering solution

HAML file viewer for C# .NET applications

.NET document viewer API to read, render and display HAML file in any type of C#, ASP.NET, VB.NET & .NET Core applications. View the rendered files with true formatting & layout in HTML5, PDF or as an image using a few lines of the code.

Steps to render HAML file in C#

With GroupDocs.Viewer you can render HAML to HTML, JPEG, PNG or PDF in a few steps.

  1. Install GroupDocs.Viewer for .NET using your favorite package manager.
  2. Create an instance of Viewer class and load the HAML file with full path.
  3. Set options to render HAML file into HTML, PNG, JPEG or PDF format.
  4. Render file and check output in the current directory.
Copy

// Set up input HAML file
string filePath = "input.haml";

// Instantiate GroupDocs.Viewer
using (Viewer viewer = new Viewer(filePath))
{
    // Set view options
    HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
        
    // Render HAML file to HTML with embedded resources
    viewer.View(viewOptions);
}
dotnet add package GroupDocs.Viewer
click to copy
copied
More examples Documentation

About GroupDocs.Viewer for .NET API

Start viewing 190+ popular document formats in your .NET applications using GroupDocs.Viewer for .NET APIs by adding a few lines of code. Developers can easily display PDF, Word Processing, Excel Spreadsheet, Presentation, Visio, Project, Outlook and many other popular document formats in HTML5, image or PDF modes. The document rendering is fast, identical to the original source file, and it does not require installing additional software or any other external libraries.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Viewer for free or get a trial license for full access!

Render other file formats using C#

Multi-format documents and images viewer API for .NET. View some of the popular file formats below without any external viewers.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English