PDF Creator ASP.NET Core samples · .NET 10 and .NET 11

ExpertPdf PDF Creator for .NET

Create PDF documents from scratch or modify existing ones: text, images, shapes, HTML and templates, bookmarks and links, security and digital signatures, tagged (accessible) PDF, PDF/A and ZUGFeRD / Factur-X invoices. Each page below creates a PDF document from the options you choose.

  • HTML to PDF — Adds the HTML of a web page or of an HTML string to a PDF document, at a given location and size, as selectable text (HtmlToPdfElement) or as an image (HtmlToImageElement), with a header, a footer and more content after it. Choose the rendering engine: Chromium is recommended for modern pages.
  • Headers and Footers — Adds an HTML header and an HTML footer with page numbers to a document of several pages. The header and the footer are templates repeated on each page; the first page can be left without them.
  • Images — Adds images to a PDF page: at their natural size, with a given width and the height that keeps the aspect ratio, stretched to a given width and height, rotated and semi-transparent.
  • Bookmarks, Links and Notes — Creates a document with a bookmark tree (root and child bookmarks, a destination with a zoom level), an internal link to another page, a link to a web page, a text note and a file attachment.
  • Merge and Split PDF — Merges two PDF files into one (as files and as streams), then splits the result: extracts the first page and a range of pages into new PDF files.
  • Modify an Existing PDF — Opens an existing PDF document, adds a logo to its first page and a watermark (a template with text and an image) repeated on every page, then saves it as a new file.
  • Security and Digital Signatures — Encrypts the PDF document with a user and an owner password, sets its permissions and signs it with the certificate of a PKCS#12 (.pfx) file. The signature is displayed over the logo image.
  • Shapes — Draws lines, rectangles, ellipses, circles, arcs, pie slices, polygons and Bezier curves, with line styles, fill colors, gradients and transparency.
  • Texts and Fonts — Adds text with TrueType fonts (embedded or not), the standard PDF fonts and the standard CJK fonts; aligned, colored and rotated text, Unicode text and a long text that flows on the next pages.
  • Tagged (Accessible) PDF — Creates a tagged PDF (PDF/UA): every element gets a structure type (heading, paragraph, table, figure with alternate text, link) or is marked as decorative, and the document has a title and a language. HTML content rendered with the Chromium engine is tagged from the page structure.
  • PDF/A — Creates a PDF/A document for long term archiving: PDF/A-2b, PDF/A-3b, PDF/A-3u or PDF/A-3a (tagged). The PDF/A-3 documents carry the data of the table as an associated CSV file.
  • ZUGFeRD / Factur-X Invoice — Creates a ZUGFeRD / Factur-X electronic invoice: the invoice HTML is rendered into a PDF/A-3 document and the matching invoice XML (EN 16931 profile) is embedded as factur-x.xml.