HTML to PDF
Web pages, HTML files and HTML strings to PDF, with headers, footers, bookmarks, links and page breaks.
ExpertPdf.Anywhere.HtmlToPdf.PdfConverter
Every ExpertPdf tool in one .NET library that runs on Windows, Linux and macOS: HTML to PDF and HTML to image, Word, Excel, PowerPoint and RTF to PDF, PDF creation, merge, split, security and digital signatures, PDF to text, PDF to image, PDF to Word, Excel and PowerPoint, and image extraction.
The same classes as the classic ExpertPdf components, rendered with Chromium, packaged for servers, containers and developer machines.
dotnet add package ExpertPdf.Anywhere.Windows
Documentation · Online samples · NuGet · Download .zip (v22.0.0)
The most used tool
Convert web pages, HTML strings and HTML files to PDF on Windows, Linux and macOS, in Docker containers and in the cloud. Chromium 154, the engine of the Chrome browser, ships in the NuGet packages and renders HTML5, CSS3, web fonts and JavaScript the way Chrome prints them: nothing to install on the server, no system packages on Linux.
The tools of the classic ExpertPdf components keep their classes, in namespaces under ExpertPdf.Anywhere. Word, Excel and PowerPoint to PDF and PDF to Office are new.
Web pages, HTML files and HTML strings to PDF, with headers, footers, bookmarks, links and page breaks.
ExpertPdf.Anywhere.HtmlToPdf.PdfConverter
Web pages and HTML to images, full page or a part of it.
ExpertPdf.Anywhere.HtmlToPdf.ImgConverter
Create PDF documents from code: pages, text, images, shapes, HTML, templates, bookmarks.
ExpertPdf.Anywhere.PdfDocument.Document
Word documents (DOCX, DOC, templates, WordML), plain text, HTML and Markdown to PDF. New in Anywhere.
ExpertPdf.Anywhere.WordToPdf.PdfConverter
Workbooks (XLSX, XLS, CSV and other formats) to PDF, with page setup, grid lines, headers and footers. New in Anywhere.
ExpertPdf.Anywhere.ExcelToPdf.PdfConverter
Presentations to PDF, as slides, notes pages or handouts. New in Anywhere.
ExpertPdf.Anywhere.PowerPointToPdf.PdfConverter
RTF documents and strings to PDF, with headers, footers and security.
ExpertPdf.Anywhere.RtfToPdf.PdfConverter
Combine PDF documents, images and empty pages into one PDF.
ExpertPdf.Anywhere.MergePdf.PDFMerge
Extract page ranges, split by bookmarks or by size.
ExpertPdf.Anywhere.PDFSplit.PDFSplitManager
Passwords, permissions, removing security and digital signatures.
ExpertPdf.Anywhere.PDFSecurity.PdfSecurityManager
Extract and search the text of PDF documents, with positions.
ExpertPdf.Anywhere.PdfToTextConverter
PDF pages to images, TIFF and thumbnails.
ExpertPdf.Anywhere.PdfToImageConverter
Extract the images of PDF documents.
ExpertPdf.Anywhere.PdfImgExtract
PDF documents to editable Word documents. New in Anywhere.
ExpertPdf.Anywhere.PdfToWordConverter
The tables of PDF documents to workbooks with typed cell values. New in Anywhere.
ExpertPdf.Anywhere.PdfToExcelConverter
PDF pages to slides, with the document's tables. New in Anywhere.
ExpertPdf.Anywhere.PdfToPowerPointConverter
Office documents converted without Microsoft Office, on Windows, Linux and macOS, by layout engines in the library.
From a file, a stream or bytes. Each converter has the header, footer, security and PDF/A and PDF/UA options of the HTML to PDF converter, and Office documents can be page elements of a PDF Creator document.
DOCX, DOCM, DOTX, DOTM, DOC, DOT, RTF, WordML, plain text, HTML and Markdown. The page sizes and margins of each section or your own, bookmarks from the headings, fields updated as Word updates them, form fields kept as PDF fields if you ask. Word to PDF converter · Docs · Online sample
XLSX, XLSM, XLTX, XLTM, XLS, XLT, CSV, tab separated values, Excel 2003 XML and Markdown tables. Each sheet as Excel prints it, with its print area, page breaks, headers and footers; a sheet, its columns or its rows fitted on one page; a bookmark for each sheet. Excel to PDF converter · Docs · Online sample
PPTX, PPTM, POTX and POTM. One page per slide, notes pages, or handouts with 1, 2, 3, 4, 6 or 9 slides on a page; hidden slides left out or shown. PowerPoint to PDF converter · Docs · Online sample
Word, Excel and PowerPoint documents convert to tagged PDF/UA and to PDF/A, with their headings, tables and the alternative text of their pictures.
In the application's process, with no native engine: only the ExpertPdf.Anywhere package. Page ranges and password protected documents included. Docs
DOCX, or RTF, OpenDocument text, HTML and Markdown. Paragraphs read across columns in reading order, with titles, headings, lists, tables, pictures, links, bookmarks and the document's fonts; a flowing layout to edit or an exact one that keeps the pages. PDF to Word converter · Online sample
XLSX. The tables of the pages as cells: numbers, percentages, amounts and dates as typed values with a number format, header rows bold and frozen, merged cells, shading and borders; a worksheet for each table or each page. PDF to Excel converter · Online sample
PPTX, a slide for each page: text boxes in their places with the document's fonts, sizes and colors, shapes, pictures and the page background. PDF to PowerPoint converter · Online sample
Each platform package brings the library and its rendering engine. Add the fonts package on servers that have no fonts for Chinese, Japanese, Arabic or Hindi text.
dotnet add package ExpertPdf.Anywhere.Windows
dotnet add package ExpertPdf.Anywhere.Native.win-x86
dotnet add package ExpertPdf.Anywhere.Linux
dotnet add package ExpertPdf.Anywhere.Linux.Arm64
dotnet add package ExpertPdf.Anywhere.MacOS
dotnet add package ExpertPdf.Anywhere.Fonts
Convert, merge, split and extract with the classes you know from the classic components, and Office documents to and from PDF with the new ones.
using ExpertPdf.Anywhere.HtmlToPdf; var converter = new PdfConverter(); // converter.LicenseKey = "your license key"; converter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4; converter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait; converter.PageWidth = 1024; byte[] pdf = converter.GetPdfBytesFromUrl("https://www.example.com/"); File.WriteAllBytes("example.pdf", pdf);
Imports ExpertPdf.Anywhere.HtmlToPdf Dim converter As New PdfConverter() ' converter.LicenseKey = "your license key" converter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4 converter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait converter.PageWidth = 1024 Dim pdf As Byte() = converter.GetPdfBytesFromUrl("https://www.example.com/") System.IO.File.WriteAllBytes("example.pdf", pdf)
The classes, properties and methods keep their names. The namespaces start with ExpertPdf.Anywhere, so an application moves with a change of its using lines, and it can sit next to the classic DLLs while you migrate.
Anywhere renders with Chromium. The settings that only applied to the old Internet Explorer and WebKit engines are not part of it.
// Classic component
using ExpertPdf.HtmlToPdf;
// ExpertPdf Anywhere
using ExpertPdf.Anywhere.HtmlToPdf;
What Anywhere adds to the classic ExpertPdf components (version 22.0 and earlier). The full list is in the release notes.
More PDF/A levels and PDF/UA-2, from a conversion, from code or for an existing document.
PDF/A-1a, 2a, 2u, 4, 4e and 4f besides the classic levels, and existing documents converted to PDF/A.
PDF/UA-2 besides PDF/UA-1. Word, Excel and PowerPoint documents convert to tagged, accessible PDF too.
AES-256 (revision 6) and AES-256-GCM, with or without encrypting the metadata.
Certificates in files, in the Windows store or on a token.
The revocation data is embedded, so the signature can still be verified when the certificate authority's services are gone. SHA-384 and SHA-512 digests.
Sign with a certificate from the Windows certificate store or from a PKCS#11 hardware token.
Prepare the document, sign its digest with a hardware security module or a key service, and complete the signature.
New managers next to merge, split and security.
Remove areas, words or patterns from a document, with a fill colour or overlay text.
Fill text boxes, check boxes, lists and radio buttons.
Bundle files into a PDF portfolio.
Change the page size and margins of existing pages.
Move, resize, recolour, replace or remove the texts, images and paths of a page; show, hide, add, remove or flatten layers.
Damaged PDF files that other readers open are opened too, with their structure rebuilt.
Turn HTML forms into PDF fields and build a table of contents for a conversion.
One AnyCPU assembly, one platform package per operating system.
No engine process started for each conversion, and up to 8 conversions at the same time, each isolated from the others.
Linux images with no extra system packages; AWS Lambda and Elastic Beanstalk, Azure App Service, Functions and Container Apps, Google Cloud Run, each with a tested setup.
Run the conversions in the ExpertPdf engine container instead of on the application's machine; the application then needs no native package, which is also how it runs on Alpine Linux. See remote engine.
ExpertPdf Anywhere has its own license. Owners of an ExpertPdf Toolkit or ExpertComponents Toolkit Total license with a valid key get it for free. Prices in USD, taxes not included.
Without a license key the library runs in evaluation mode: every feature, no page limit, a "Demo Version" watermark on each page. What each license covers: licenses explained.
Platforms, packages, moving from the classic components and licensing.
ExpertPdf.Anywhere and the package of your platform: ExpertPdf.Anywhere.Windows, ExpertPdf.Anywhere.Linux, ExpertPdf.Anywhere.Linux.Arm64 or ExpertPdf.Anywhere.MacOS.PdfConverter, Document, PDFMerge, PDFSplitManager, PdfSecurityManager and the others. Their namespaces start with ExpertPdf.Anywhere, so moving an application is mostly a change of its using lines. Settings that only applied to the old Internet Explorer and WebKit rendering engines are not in Anywhere, which renders with Chromium.PdfToWordConverter writes an editable DOCX (or RTF, OpenDocument text, HTML or Markdown) with headings, lists, tables, pictures and links; PdfToExcelConverter writes the tables of a document to an XLSX workbook with numbers, dates and amounts as typed cells; PdfToPowerPointConverter writes a PPTX with a slide for each page.ExpertPdf.Anywhere.Fonts package: it brings the Noto fonts for these scripts and the library uses them when the system has none.Install ExpertPdf Anywhere from NuGet and try every feature in evaluation mode. License it when you are ready.