PDF library v22.0.0

PDF Creator SDK for .NET

ExpertPdf PDF Creator is a .NET library built to enhance the HTML to PDF Converter. Besides the HTML to PDF conversion features, it has a large number of general PDF capabilities: create PDF documents from scratch or modify existing ones.

Add text, images, shapes, bookmarks, links, file attachments and digital signatures, and place HTML or RTF content anywhere on a page. Encrypt documents, set passwords and permissions, merge and split PDF files.

NuGet · ExpertPdf.PdfCreator.NetCore C# & VB.NET samples included
Released v22.0.0 · November 20, 2026
Includes HTML to PDF and RTF to PDF conversion
Targets .NET Framework to .NET 11

Everything the PDF Creator can do.

The features grouped by what they touch: the elements of a page, the security of the document, and the HTML and RTF content converted into the same document.

General

Pages and their elements.

Text, images, shapes, bookmarks, links, attachments and notes: what you need to build a page in code.

Text and image elements

Add text and image elements to the pages and templates of a document. Fonts and colors come directly from the .NET Font and Color structures.

Multipage TIFF images

Render multipage images (TIFF) to PDF.

Graphic elements

Draw lines, rectangles, ellipses, circles, polygons and Bezier curves, with line width and dash style, fill colors and gradients.

Table of contents

Insert a table of contents with dotted leaders, page numbers and links, built from the HTML headings or from entries you add.

Page labels and named destinations

Number pages the way a book does (i, ii, iii, then 1, 2, 3, or A-1) in the viewer, and add named destinations that links like file.pdf#name open.

Bookmarks

Create the bookmarks of the PDF document: root bookmarks and child bookmarks, each pointing to a page or a point in a page.

Merge and split

Merge and split PDF files and streams with the MergePdf and SplitPdf classes.

Internal and external links

Create links to web addresses and to other places in the same PDF document.

File attachments and text notes

Attach files to the document and add text notes to its pages.

Page rotation and viewer preferences

Rotate PDF pages by 90, 180 or 270 degrees, set the viewer preferences and the document description: title, subject, keywords and author.

PDF security

Signatures and encryption.

Digital signatures, passwords, encryption keys and document permissions.

Digital signatures

Add ordinary digital signatures with a certificate from a PKCS#12 file (.pfx or .p12) or from a Windows certificate store.

User and owner passwords

Set the password required to open the document and the password required to change its permissions.

Encrypted content

Encrypt the content of the PDF document.

40 and 128 bit keys

Choose a 40 bit or a 128 bit encryption key.

Document permissions

Allow or deny printing, editing, copying, filling form fields and editing annotations.

Open AES-encrypted PDFs

Open and append PDF documents encrypted with AES-128 or AES-256, with their password.

Standards

Archiving, accessibility and e-invoices.

Documents that meet the PDF/A, PDF/UA and ZUGFeRD standards.

PDF/A and PDF/X

PDF/A-1b, PDF/A-2b, PDF/A-3b, PDF/A-3u and PDF/A-3a for long-term archiving, and PDF/X-1a for print.

Accessible PDF (PDF/UA-1)

Tagged documents, from the HTML of a page or built in code with tags on each element, alternate text and artifacts.

ZUGFeRD and Factur-X

Hybrid electronic invoices, profiles Minimum to XRechnung, with the invoice XML attached, and custom XMP schemas.

Associated files

Attach files with their relationship to the document (source, data, alternative, supplement), as PDF/A-3 requires.

HTML to PDF conversion

HTML content in the PDF.

Place converted web pages and HTML strings anywhere in the document: on a page, in a template, in the header or footer.

Place HTML in any position

Place the result of an HTML to PDF conversion, from a URL or an HTML string, at any position in the PDF document.

Width and height

Set the width and height in the PDF of the content rendered from HTML, or let the height follow the content.

Chromium and Blink engines

Render the HTML with the new Chromium engine (CEF 154), with Blink (Chromium 148) or with the internal WebKit engine.

HTML across pages

With Chromium, an HTML element continues on the next pages and its last page ends where the content ends.

Several HTML elements

Add several HTML elements to the same document, each in its own position.

Rendered bounds

Get the bounds of the rendered content in each page it was rendered on, to place the next elements right under it.

Transparency and rotation

Set the transparency of the rendered content and rotate it.

HTML in templates

Add HTML to templates repeated on each page of the PDF document, for example a watermark.

HTML in header and footer

Add HTML to the header and the footer of the PDF document.

RTF to PDF conversion

RTF content in the PDF.

The same placement options as HTML, with RTF documents as the source.

Place RTF in any position

Place the result of an RTF to PDF conversion at any position in the PDF document.

Width and height

Set the width and height in the PDF of the content rendered from RTF, or let the height follow the content.

Several RTF elements

Add several RTF elements to the same document, each in its own position.

Rendered bounds

Get the bounds of the rendered content in each page it was rendered on.

Transparency and rotation

Set the transparency of the rendered content and rotate it.

RTF in templates

Add RTF to templates repeated on each page of the PDF document.

RTF in header and footer

Add RTF to the header and the footer of the PDF document.

Released continuously since 2007.

The latest releases of the PDF Creator. Open the list below the table for every release since version 2.0.

Version What changed
v22.0.0 · HTML elements rendered with the new Chromium engine (CEF 154) or with Blink 148, with NuGet engine packages ExpertPdf.PdfCreator.Chromium.Windows and ExpertPdf.PdfCreator.NetCore.Chromium.Windows. With Chromium, an HTML element continues across pages and its last page ends where the content ends. Table of contents with dotted leaders, page numbers and links, built from the HTML headings or from entries you add. Page labels (i, ii, iii, then 1, 2, 3, or A-1) and named destinations. Tagged, accessible PDF (PDF/UA-1), with a tagging API for documents built in code. PDF/A-2b, PDF/A-3b, PDF/A-3u and PDF/A-3a output, and associated files for PDF/A-3. ZUGFeRD and Factur-X electronic invoices, profiles Minimum to XRechnung, and custom XMP schemas. Opens PDF documents encrypted with AES-128 and AES-256. Version 22.0 requires a version 22 license key.
v21.1.0 · .NET 10 support. Speed improvements. Bug fixes.
v20.1.0 · Performance improvements. Bug fixes.
v19.0.0 · Performance improvements. Bug fixes.
v18.1.0 · Performance improvements. Bug fixes.
Show older releasesHide older releases
v18.0.0 · Performance improvements. Bug fixes.
v17.0.0 · Performance improvements. Bug fixes.
v16.1.0 · Performance improvements. Bug fixes.
v16.0.0 · Performance improvements. Bug fixes.
v15.1.0 · Performance improvements. Bug fixes.
v15.0.0 · Performance improvements. Bug fixes.
v14.1.0 · Performance improvements. Bug fixes.
v14.0.0 · Performance improvements. Bug fixes.
v12.3.0 · Performance improvements. Bug fixes.
v12.2.0 · Overall performance improvements / bug fixes.
v12.1.0 · Repeat table headers fixes. Page breaks fixes. Hidden text fixes. Background images rendering fixes. Overall performance improvements / bug fixes.
v12.0.0 · Fonts rendering fixes. Page breaks fixes. PDF parsing fixes. Overall performance improvements / bug fixes.
v11.2.0 · Performance improvements. Bug fixes.
v11.1.0 · Performance improvements. Bug fixes.
v11.0.0 · SVG rendering improvements. Web fonts fixes. Right to left texts rendering fixes. Overall performance improvements / bug fixes.
v10.2.0 · SVG rendering improvements. Web fonts fixes. Right to left texts rendering fixes. CSS transformations fixes. Overall performance improvements / bug fixes.
v10.0.0 · Improved/faster html rendering engine. Support for TLS 1.0, 1.1, 1.2. Improved C#/VB.NET samples. Improved documentation / users guide. Overall performance improvements / bug fixes.
v9.5.0 · Performance improvements. Bug fixes.
v9.4.0 · Performance improvements. Bug fixes.
v9.3.0 · Performance improvements. Bug fixes.
v9.2.0 · Possibility to start the html to pdf conversion by calling a javascript method (set HtmlToPdfElement.StartupMode = StartupMode.Manual in .NET and call ExpertPdfJSObj.startConversion(); in javascript). Javascript injection before html to pdf conversion (use HtmlToPdfElement.StartupScript to set some javascript code that will run at startup, before any other script on the page). Possibility to use @media print CSS styles for conversion instead of the default @media screen for html to pdf conversions (set HtmlToPdfElement.UsePrintCSSMediaType = true).
v9.1.0 · Stability fixes for the new rendering engine based on WebKit introduced in v9.0.0. Conversion speed improvements. Possibility to convert only a certain section of a web page, using the RenderElementId property. Support for Integrated Windows Authentication. The converter will automatically try to authenticate the current user when requesting a page served by IIS that uses Windows Authentication with NTLM provider.
v9.0.0 · This is the most important release so far, because ExpertPdf is now using a new internal HTML rendering engine based on WebKit, the rendering engine used by Google's Chrome and Apple's Safari. The previous rendering engine (IE) can still be used, but it's not recommended. Using this new rendering engine, ExpertPdf has a whole set of brand new features: Support for HTML5 and CSS3 features, including canvas and svg. Support for inline SVG in HTML documents. Support for web fonts. Support for Web Open Font Format WOFF. Powerful html5/css3/javascript rendering engine.
v8.2.0 · Performance improvements. Bug fixes.
v8.1.0 · Performance improvements. Bug fixes. Updated .NET 4.0 / 4.5 samples for Visual Studio 2012.
v8.0.0 · Performance improvements. Bug fixes. (Cumulative update)
v7.0.0 · Performance improvements. Bug fixes. (Cumulative update)
v6.2.0 · Added assemblies for .NET 4.0. Added samples for .NET 4.0 and Visual Studio 2010. Performance improvements. Bug fixes.
v6.0.0 · Repeat the header of long HTML tables on each PDF page where the table is rendered using the display:table-header-group style. Exclude HTML regions from rendering using the HtmlExcludedRegionsOptions property of the PdfConverter class. Improved the converter behavior in multithreaded applications and in high traffic websites. Improved the scrolling speed of the generated PDF document when the document is opened in Adobe Reader. Added the Console_MultithreadedPerformance sample application to measure the converter performance in multithreaded applications. Added sample applications to show how to repeat the head of a HTML table on each PDF page where the table is rendered.
v5.4.0 · Import bookmarks from the external PDF documents appended and prepended to the conversion result. Added the OpenAction property to execute a JavaScript code or to automatically go to a PDF page when the PDF document is displayed. Added the FitHeight property to make the HTML content fit the PDF page height. Added the HttpRequestHeaders property to send HTTP headers (e.g. cookies) to the web server when the web page is requested by converter. Added the TransparencyEnabled property to enable or disable all the transparencies from the generated PDF document. Added the DrawBackground property for HtmlToPdfArea and HtmlToPdfElement to make visible the PDF objects behind them. Added a demo application for WPF (Windows Presentation Foundation) Added a demo application for how to alternate the header and footer content on odd and even pages of the generated PDF document.
v5.3.0 · Resolved a problem with converting some web sites with JavaScript enabled. Resolved a problem with creating PDF/X conformant documents.
v5.2.0 · Improved support for complex script and right to left Asian languages. Added an option to generate PDF/A, PDF/X or PDF/SigQ compliant documents. Added an option to specify the color space of the PDF document (RGB, CMYK, Grayscale) C# and VB.NET samples for creating tables of content with page numbers. C# and VB.NET samples for multiple HTML conversions in the same PDF. C# and VB.NET samples for retrieving the position in PDF of the HTML elements. API to get the position in PDF (by ID or by tag name) of any HTML element. API to convert multiple HTML to the same PDF document. API to add texts, images, shapes, digital signatures, bookmarks, attachments to the PDF document created by the converter. Ensured the converter works when FIPS compliant algorithms are enabled. Performance improvements.
v5.0.0 · Convert the HTML links with anchors to internal links in PDF to easily create a table of contents in the generated PDF. Added an option to compress images in PDF with JPEG to highly reduce the PDF document size. Allow any number of HtmlToPdfArea, TextArea and ImageArea in the generated PDF document header and footer. Added the possibility to prepend an array of external PDF documents before conversion to create cover pages. Added support for rendering vertical text defined in HTML with writing-mode styles tb-rl or bt-rl. Performance improvements.
v4.0.6 · Added more descriptive error messages for easier troubleshooting. Added the possibility to stretch the HTML content to fit the PDF page width.
v4.0.0 · Added the possibility to specify the PDF viewer preferences. Added the option to auto size the PDF page width. Header and footer improvements. Improved the rendering of PDFs with embedded images. Added a ConversionSummary property.
v2.9.3 · Improved memory utilization during conversion. Added the possibility to specify a navigation timeout of the html page. Bug fixes.
v2.9.0 · Added the possibility to specify the Internet Security Zone of the converted URL.
v2.8.2 · Improved the rendering of HTTP links in PDF. Improved the height auto-detection for some web pages.
v2.8.0 · Improved true type fonts embedding in the generated PDF. Added the option to convert the whole HTML content to a single PDF page.
v2.7.1 · Bug fixes.
v2.7.0 · Automatically generated bookmarks for a specified list of HTML tags. Bug fixes.
v2.6.1 · Better support for large files. Improved rendering of transparent PNG and GIF images. Bug fixes.
v2.6.0 · The HTTP links from the header and footer HTML are converted to PDF links. Bug fixes.
v2.5.6 · Support for .NET 3.5 (Visual Studio 2008) Bug fixes.
v2.5.2 · Possibility to enable/disable scaling of the content to fit the page width. Bug fixes.
v2.5.0 · Support for 64bit operating systems and Windows Vista. Full support for html in headers and footers.
v2.2.0 · Support for IIS authentication. Custom PDF page size. Header/footer enhancements (show on odd/even pages, align title/subtitle)
v2.1.1 · Support for right-to-left languages (Arabic, Armenian, Georgian, Hebrew, Indic, Thai and Vietnamese) Automatic page breaks algorithm enhancements to avoid image breaks. Major speed enhancements.
v2.1.0 · Possibility to enable Javascript/ActiveX during conversion. Bug fixes.
v2.0.0 · Support for html links. Support for embedded true type fonts. Multiple security options. Possibility to change the pdf document description elements. Support for page breaks using CSS styles (page-break-before:always, page-break-after:always) Keep-together feature with CSS style page-break-inside:avoid. Full support for PNG images (including transparency) Bug fixes.

A page, in code.

Create a document, add a page, add text, a line and an image, and save it. The other tabs place HTML content on a page, and encrypt and sign a document. Coordinates and sizes are in points (1/72 inch).

Program.cs · C#
using System.Drawing;
using ExpertPdf.PdfCreator;

LicensingManager.LicenseKey = "your license key";

// A new document with an A4 portrait page and 36 points margins
var document = new Document();
PdfPage page = document.AddPage(PageSize.A4, new Margins(36),
    PageOrientation.Portrait);

// A text element with a standard PDF font
PdfFont font = document.AddFont(StdFontBaseFamily.HelveticaBold);
font.Size = 18;
var title = new TextElement(0, 0, "Invoice", font);
title.ForeColor = Color.FromArgb(11, 102, 194);
AddElementResult result = page.AddElement(title);

// A line and an image under the text (coordinates in points)
float y = result.EndPageBounds.Bottom + 10;
page.AddElement(new LineElement(0, y, 300, y));
page.AddElement(new ImageElement(0, y + 10, 120, "logo.png"));

// Save as a byte array, or with Save(fileName) or Save(stream)
byte[] pdf = document.Save();
document.Close();

Install with dotnet add package ExpertPdf.PdfCreator.NetCore, or reference epdfcreator.dll from the download. The documentation explains the API and describes every class and method.

PDF Creator questions, answered.

Common questions about building documents in code, HTML and RTF content, security, and the supported platforms.

How is the PDF Creator different from the HTML to PDF Converter?
The PDF Creator was built to enhance the HTML to PDF Converter. Besides the HTML to PDF conversion features, it lets you create PDF documents from scratch or modify existing ones in code: pages, text, images, shapes, bookmarks, links, attachments, security and digital signatures.
Can I mix HTML or RTF content with other elements on the same page?
Yes. The HtmlToPdfElement and RtfToPdfElement place converted content at the position and size you choose. Add several of them to the same document, get the bounds of the rendered content from the AddElementResult, and continue with text, images or shapes right under it.
Can I modify an existing PDF document?
Yes. Create a Document from an existing PDF file or stream, also with the password of a protected document, then add pages and elements, a watermark template or a digital signature, and save it again.
What PDF security options are included?
User and owner passwords, 40 and 128 bit encryption keys, and permissions to print, edit, copy, fill form fields and edit annotations, set with the Document.Security property. Digital signatures are added with the DigitalSignatureElement, using a certificate from a PKCS#12 file (.pfx or .p12) or from a Windows certificate store.
Can I merge or split PDF files with the PDF Creator?
Yes. The MergePdf class merges PDF files and streams, and the SplitPdf class extracts a range of pages into a new document. If you only need to merge or split, the PDF Merge and PDF Split components are also available on their own.
Can it produce PDF/A, accessible PDF or e-invoices?
Yes. PdfStandardSubset produces PDF/A-1b, PDF/A-2b, PDF/A-3b, PDF/A-3u and PDF/A-3a and PDF/X-1a documents. Document.Tagged produces a tagged, accessible PDF (PDF/UA-1), with BeginTag / EndTag and the tag properties of each element for documents built in code. AddZugferdInvoice makes ZUGFeRD and Factur-X electronic invoices, profiles Minimum to XRechnung, and AddAssociatedFile attaches files for PDF/A-3.
Can it build a table of contents?
Yes. A TableOfContents collects entries from the HTML headings or from entries you add, and Document.InsertTableOfContents inserts it with dotted leaders, page numbers and links. AddPageLabelRange sets page labels such as roman numerals for the front matter.
Can I add bookmarks, links and attachments?
Yes. Add root and child bookmarks with Document.AddBookmark, links to web addresses with LinkUrlElement, links to other places in the document with InternalLinkElement, file attachments with FileAttachmentElement and text notes with TextNoteElement.
Which .NET versions are supported?
.NET Framework and .NET Core / .NET 5 to .NET 11. On NuGet, ExpertPdf.PdfCreator.NetCore targets .NET Standard 2.0 and .NET Framework, and ExpertPdf.PdfCreator targets .NET Framework. No installation and no printer driver are needed: you reference the assembly from any type of .NET application, such as ASP.NET, Windows Forms, console applications and Windows services.
Can I try it before buying?
Yes. The evaluation version is fully functional and can be used for an unlimited time. Download it with the C# and VB.NET samples, and license it on the pricing page when you are ready.

Build PDF documents from .NET code.

Download the free trial of the PDF Creator with C# and VB.NET samples. When you are ready, license it on the pricing page.

Targets.NET Framework · .NET Core · .NET 5 to 11
Versionv22.0.0 · November 20, 2026