Render 190+ document, spreadsheet, presentation, CAD, email and image formats to HTML, PNG, JPG and PDF
GroupDocs.Viewer is an on-premise document rendering API that turns PDF, Word, Excel, PowerPoint, Visio, OpenDocument, CAD drawings, emails, archives and images into HTML pages, images or PDF, so your application can show any document in a browser without the program that made it. Render all pages or only the ones you need, read the page count and sizes before rendering, and tune the output per format: spreadsheet pagination, CAD layers and layouts, email fields, fonts and watermarks.
- NEW: Released GroupDocs.Viewer for Python via .NET 26.11 on PyPI, on the 26.10 engine and .NET 10: a
groupdocs-viewercommand opens a document or a folder in the browser, a running render can be cancelled, pages render to memory through Python functions, and a licence that cannot be applied raisesLicenseError. - Released GroupDocs.Viewer.Mcp 26.9, an MCP server that lets AI agents (Claude, Cursor, GitHub Copilot) render and inspect documents locally: files never leave your machine. Get started.
- Published GroupDocs.Viewer 26.10 for .NET on NuGet: builds for .NET 8 and .NET 10, CAD layers that can be shown and hidden in HTML output without rendering again, and patched cryptography packages.
- Published GroupDocs.Viewer 26.9 for Java and for Node.js via Java: OFD documents, PDF annotations that are hidden by default, page numbering for Word documents, and their resolution when rendered to images.
High-performance on-premise rendering of 190+ formats to HTML, images and PDF. dotnet add package GroupDocs.Viewer
- GroupDocs.Viewer-for-.NET: Core API examples, plugins and showcase projects.
- GroupDocs.Viewer-for-.NET-UI: A document viewer UI for ASP.NET Core applications.
using GroupDocs.Viewer;
using GroupDocs.Viewer.Options;
// Load the source PDF file
using (var viewer = new Viewer("resume.pdf"))
{
// Set output HTML options, one file per page
var viewOptions = HtmlViewOptions.ForEmbeddedResources("page{0}.html");
// Render PDF to HTML with embedded resources
viewer.View(viewOptions);
}Native Java library with the same rendering, from the GroupDocs Maven repository: com.groupdocs:groupdocs-viewer:26.9.
- GroupDocs.Viewer-for-Java: Runnable Java examples and demo projects.
- GroupDocs.Viewer-for-Java-UI: A document viewer UI for Java web applications.
- Render EML with attachments, render ZIP archives and view password-protected documents: Use-case showcases.
import com.groupdocs.viewer.Viewer;
import com.groupdocs.viewer.options.HtmlViewOptions;
// Instantiate Viewer
try (Viewer viewer = new Viewer("resume.pdf")) {
// Set output HTML options, one file per page
HtmlViewOptions viewOptions = HtmlViewOptions.forEmbeddedResources();
// Render PDF to HTML with embedded resources
viewer.view(viewOptions);
}The Java engine from Node.js. npm install @groupdocs/groupdocs.viewer
- GroupDocs.Viewer-for-Node.js-via-Java: Runnable Node.js examples.
const groupdocs = require('@groupdocs/groupdocs.viewer');
// Instantiate Viewer
const viewer = new groupdocs.Viewer("resume.pdf");
// Set output HTML options, one file per page
const viewOptions = groupdocs.HtmlViewOptions.forEmbeddedResources();
// Render PDF to HTML with embedded resources
viewer.view(viewOptions);
viewer.close();The .NET engine from Python 3.5 to 3.14, on Windows, Linux and macOS, with the runtime embedded. pip install groupdocs-viewer-net
- GroupDocs.Viewer-for-Python-via-.NET: Runnable Python examples for every documented scenario.
- GroupDocs.Viewer-for-Python-via-.NET-UI: A document viewer UI to mount into FastAPI, Flask or Django, or to run on its own.
- PyPI · Docs · API reference · Releases
from groupdocs.viewer import Viewer
from groupdocs.viewer.options import HtmlViewOptions
def render_pdf_to_html():
# Instantiate Viewer
with Viewer("resume.pdf") as viewer:
# Set output HTML options, one file per page
view_options = HtmlViewOptions.for_embedded_resources("page_{0}.html")
# Render PDF to HTML with embedded resources
viewer.view(view_options)
if __name__ == "__main__":
render_pdf_to_html()Or open a document, or a whole folder, in your browser: groupdocs-viewer resume.pdf (how it works).
Let AI agents render and inspect documents through the GroupDocs engine, locally over MCP: no uploads, no cloud; it runs in evaluation mode out of the box and with your existing license.
- GroupDocs.Viewer.Mcp: The MCP server, with one-click IDE install buttons, a NuGet tool and a Docker image.
- GroupDocs.Mcp.Installer: Cross-platform installer, per-client registration and post-install verification.
- GroupDocs.Viewer.Mcp.Tests: Integration suite that verifies every published release.
# Install and run in one command (.NET 10), then just ask your agent:
dnx GroupDocs.Viewer.Mcp --yes"Render page 1 of report.pdf and show me the image." "How many pages does contract.docx have, and what size is each page?"
📘 MCP documentation · 📦 NuGet
- Document portals: Show uploaded files in the browser, whatever program made them.
- Previews and thumbnails: Page images for search results, file managers and content management systems.
- Secure viewing: Hand out HTML or images instead of the source file, with a text watermark on every page.
- Email and archives: Read MSG and EML messages with their attachments, and the files inside ZIP archives.
- Engineering: Review DWG and DXF drawings with their layouts and layers, without a CAD program.
- 190+ formats: PDF, DOCX, DOC, RTF, ODT, XLSX, XLS, CSV, ODS, PPTX, PPT, ODP, VSDX, DWG, DXF, MSG, EML, ZIP, PNG, JPEG, TIFF, SVG and more.
- Four outputs: HTML with embedded or external resources, PNG, JPEG and PDF.
- Only what you need: Render chosen pages, and read the page count, page sizes and attachments first.
- Spreadsheets: One page per sheet, sheets split into pages, print areas and page breaks.
- CAD: Render by width, height or scale, choose layouts, and show or hide layers.
- Fonts and watermarks: Your own font folders, a default font, and text watermarks.
- Password-protected documents: Open them with their password.
- Documentation: Full guides and tutorials at docs.groupdocs.com/viewer.
- Support: Expert help at the GroupDocs Free Support Forum.
- Evaluation: Get a Temporary License for full feature testing.
- Live Demo: Try rendering online at GroupDocs.Viewer apps.
python mcp mcp-server ai-agents document-viewer document-rendering html5-viewer pdf-to-html docx-to-html excel-viewer pptx-viewer cad-viewer email-viewer on-premise dotnet java nodejs