§ COMMUNITY EDITION FREE · .NET FRAMEWORK + .NET CORE + .NET 5–10

Free HTML to PDF for .NET.
The Community Edition that ships in production.

SelectPdf Community Edition is the free HTML to PDF converter for .NET — the same engine as our commercial library, with full HTML5/CSS3, a real JavaScript runtime and custom headers and footers — capped at five PDF pages per document. Free for any use, including production. It is a free product, not the commercial trial. On Linux, macOS and Docker, the free SelectPdf.HtmlToPdf.Universal package is the same Community Edition, with the same 5-page cap, rendered with Chromium.

SELECTPDF · COMMUNITY
.NET FRAMEWORK · .NET CORE
FREE
5
PAGES MAX

Per generated PDF. A few advanced features need the commercial library.

HTML5 · CSS3 · JS v26.5
§WHAT YOU GET

The free HTML to PDF converter for .NET, in six bullets.

  • Convert any URL or HTML file to PDF
  • Convert raw HTML strings to PDF
  • No external dependencies
  • Powerful JavaScript engine
  • HTML5 / CSS3 support
  • Customizable headers and footers
§VERY EASY TO USE

Four lines of C#. One PDF.

Instantiate the converter, call ConvertUrl, save the result, close the document. The Community Edition exposes the same surface as the commercial library — porting later is a no-op. Install Select.HtmlToPdf on Windows, or SelectPdf.HtmlToPdf.Universal on Windows, Linux, macOS and Docker with using SelectPdf.Universal;.

HtmlToPdf.cs
// instantiate the html to pdf converter
HtmlToPdf converter = new HtmlToPdf();

// convert the url to pdf
PdfDocument doc = converter.ConvertUrl(url);

// save pdf document
doc.Save(file);

// close pdf document
doc.Close();
HtmlToPdf.vb
' instantiate the html to pdf converter
Dim converter As New HtmlToPdf()

' convert the url to pdf
Dim doc As PdfDocument = converter.ConvertUrl(url)

' save pdf document
doc.Save(file)

' close pdf document
doc.Close()
RESOURCES
Samples & docs

The Community package contains ready-to-use samples, coded in C# and VB.NET, for Windows Forms and ASP.NET.

Invoice PDF generated by the free SelectPdf Community Edition HTML to PDF converter for .NET
Real PDF — generated from HTML by SelectPdf
§FULL FEATURE LIST

The Community Edition feature set.

The conversion options the free HTML to PDF converter for .NET exposes — within the five-page limit. What needs the commercial library is listed next.

Output
  • Generate PDF documents up to 5 pages
  • Convert any web page to PDF
  • Convert any raw HTML string to PDF
  • Set PDF page settings (size, orientation, margins)
  • Resize content during conversion to fit the PDF page
  • Set PDF document properties
  • Set PDF viewer preferences
  • Set PDF security (passwords, permissions)
  • PDF/A-1b, PDF/A-2b and PDF/X-1a; with SelectPdf.HtmlToPdf.Universal also PDF/A-2u, 3b, 3u and PDF/A-4
Layout
  • Set conversion delay and web page navigation timeout
  • Custom headers and footers
  • Support for HTML in headers and footers
  • Automatic and manual page breaks
  • Repeat HTML table headers on each page
  • Support for @media types screen and print
  • Support for internal and external links
  • Generate bookmarks automatically based on HTML elements
Networking & runtime
  • Support for HTTP headers
  • Support for HTTP cookies
  • Support for web pages that require authentication
  • Support for proxy servers
  • Enable / disable JavaScript
  • Modify color space
  • Multithreading support
  • HTML5 / CSS3 / web fonts support
§NEEDS THE COMMERCIAL LIBRARY

What's not in the free edition.

The Community Edition is a free product with limited functionality — it is not the commercial trial. These features require the full SelectPdf Library for .NET (which has its own free, watermarked trial).

Scale & targeting
  • Create PDF documents with more than 5 pages
  • Convert only a section of the page by HTML element ID
  • Manually start the conversion from JavaScript
  • Run a JS startup script before conversion
  • Hide parts of the web page during conversion
  • Custom headers and footers on specific pages
Work with PDFs
  • Load and modify existing PDF documents
  • Add HTML, text, images to a PDF (PdfHtmlElement / PdfTextElement / PdfImageElement)
  • Resize/scale content of existing PDFs
  • PDF portfolios management
  • Form-field filling
  • Accessible / tagged PDF — PDF/UA-1 and PDF/UA-2
  • PDF/A at the accessible A levels (1a, 2a, 3a), and PDF/A-3 in the classic Select.HtmlToPdf
  • ZUGFeRD / Factur-X electronic invoices
  • Word to PDF, tables of contents, fillable forms from HTML, redaction and signature validation — in the commercial SelectPdf.Universal package
  • Specify the open action (jump to page, run script)
Extract & convert
  • Extract text from PDF (PDF to Text converter)
  • Search for text in a PDF
  • Convert PDF pages to images (PDF to Image converter)
  • Get web-elements location in the PDF
§COMPATIBILITY

Where it runs.

.NET Framework and .NET Core through to .NET 10, on Windows, including Azure Web Apps, and on Linux, macOS and Docker with SelectPdf.HtmlToPdf.Universal.

Frameworks.NET Framework 2.0+ / 4.0+, .NET Core, and .NET 5 through .NET 10 · .NET 8 / 10 and .NET Standard 2.0 (Universal)
EnginesWebKit, WebKit Restricted, Chromium (from .NET 2.0) · Blink (.NET 4.6.1+) · Chromium only (Universal)
OSWindows x86/x64 · Linux x64/ARM64 · macOS Apple Silicon · Alpine through the engine container (via SelectPdf.HtmlToPdf.Universal)
InstallOne package per platform: SelectPdf.HtmlToPdf.Windows, .Linux, .Linux.Arm64 or .MacOS (Universal)
CloudAzure Web Apps — fully supported · Docker, Azure App Service and Functions, AWS Lambda (Universal)
Page limit5 pages per generated PDF document; PdfPageCountBeforeLimit reports a cut (Universal)
SamplesC# and VB.NET — Windows Forms and ASP.NET
LicenseFree for any use, including commercial
§FAQ

The free .NET edition, answered.

Yes. The SelectPdf Community Edition — the free HTML to PDF converter for .NET — is free for personal and commercial projects, with no royalties and no per-document fees.
The Community Edition generates PDF documents up to five pages long. The five-page cap is the main limit, but it is not the only one — some features such as loading and modifying existing PDFs, PDF to Text, PDF to Image and form filling need the commercial library; see what is not in the free edition. With SelectPdf.HtmlToPdf.Universal, your code can tell when the limit cut a document: converter.ConversionResult.PdfPageCountBeforeLimit is then larger than PdfPageCount.
No. The Community Edition is a separate free product with limited functionality — it is not the trial. The commercial SelectPdf Library has its own free trial: the full library, no limits, with a watermark on every page.
Documents over five pages, loading and modifying existing PDFs, PDF to Text, PDF to Image, searching text in a PDF, form filling, PDF portfolios, web-elements location, accessible / tagged PDF (PDF/UA-1 and PDF/UA-2), PDF/A at the accessible A levels (and PDF/A-3 in the classic package), ZUGFeRD / Factur-X electronic invoices, converting only a page section, and starting the conversion from JavaScript all require the commercial SelectPdf Library for .NET. Word to PDF, tables of contents, fillable forms from HTML forms, redaction and signature validation are in the commercial SelectPdf.Universal package.
It supports .NET Framework 2.0+ / 4.0+, .NET Core, and .NET 5 through .NET 10, and ships the WebKit, WebKit Restricted, Blink and Chromium engines. WebKit, WebKit Restricted and Chromium run from .NET Framework 2.0 onward; Blink requires .NET Framework 4.6.1 or later. The cross-platform SelectPdf.HtmlToPdf.Universal targets .NET 8, .NET 10 and .NET Standard 2.0 and renders with Chromium.
Yes — and beyond Windows too. The classic package runs self-hosted on Windows (x86 and x64), including Azure Web Apps; the free SelectPdf.HtmlToPdf.Universal package runs on Windows, Linux (x64/ARM64) and macOS on Apple Silicon with the same 5-page cap, and on Alpine Linux through the SelectPdf engine container. Not on .NET at all? Reach for the SelectPdf Online API — the same conversion over REST.
The Community Edition package ships ready-to-use samples coded in C# and VB.NET for Windows Forms and ASP.NET, plus online documentation.
Swap in a commercial license key — the API is identical, so existing code keeps working with no changes. Or move to the SelectPdf Online API to run from any language or OS.
Yes. The free SelectPdf.HtmlToPdf.Universal package renders with Chromium, so modern CSS such as flexbox and grid converts the way Chromium displays it, on Windows, Linux and macOS, up to 5 pages per PDF and free for commercial use. With the classic Select.HtmlToPdf package, add the Chromium engine companion package (Select.HtmlToPdf.Chromium.Windows, or Select.HtmlToPdf.NetCore.Chromium.Windows on .NET Core and .NET 5–10).
Yes. SelectPdf.Compat.DinkToPdf and SelectPdf.Compat.WkHtmlToPdfDotNet are free packages built on the Community Edition that keep the DinkToPdf and WkHtmlToPdfDotNet APIs, so existing code builds as it is and renders with Chromium. See the DinkToPdf alternative.