Skip to main content

Web document engine

OfficeIMO.Html

Parse HTML and MHTML, resolve resources safely, and render or project web content into OfficeIMO document models.

MIT licensed No Office required Cross-platform .NET
Install dotnet add package OfficeIMO.Html
Generated output ยท OfficeIMO.Html
GENERATED OUTPUT

Ready for your workflow

Build, inspect, and transform documents through a focused API.

C#using var document = CreateDocument();
document.Save();

Shared HTML behavior for every converter

OfficeIMO.Html owns HTML/MHTML parsing, resource policy, base-URI resolution, accessible structure, layout scenes, and direct image rendering. Word, Excel, PowerPoint, Markdown, RTF, Email, and PDF adapters reuse this owner instead of implementing separate web-content rules.

using OfficeIMO.Html;

HtmlConversionDocument source = HtmlConversionDocument.Parse(
    "<h1>Status</h1><p>Generated by OfficeIMO.</p>");
byte[] png = source.ToPng(new HtmlRenderOptions { ViewportWidth = 720 });

Outputs and projections

  • Render directly to PNG, JPEG, TIFF, SVG, and lossless WebP.
  • Create PDF output with OfficeIMO.Html.Pdf.
  • Convert semantic content to Word, Markdown, and RTF through their focused adapter packages.
  • Load and save MHTML archives with bounded resource handling and deterministic root-part selection.
  • Apply URL, media, size, node, and depth policies before untrusted web content enters a document workflow.

Next step

Turn the package into a working document.

Follow a focused guide, inspect the generated API reference, or try a browser-safe conversion.