Skip to content

iron-software/IronPdf.Examples

Repository files navigation

IronPdf.Examples

Runnable C# examples for IronPDF, a .NET PDF library that converts HTML to PDF and generates, edits, and extracts PDF content.

Install

dotnet add package IronPdf

Quickstart

using IronPdf;

var renderer = new ChromePdfRenderer();
var pdf = renderer.RenderHtmlAsPdf("<h1>Hello, PDF!</h1>");
pdf.SaveAs("hello.pdf");

That produces a working PDF on the first run. To render from other sources, swap RenderHtmlAsPdf for RenderUrlAsPdf(url), RenderHtmlFileAsPdf(path), or use ImageToPdfConverter.ImageToPdf(image).

For production use, set a license key via License.LicenseKey = "YOUR-KEY". Without one, generated PDFs include a watermark.

What's in this repo

Each folder contains a self-contained .NET project you can open and run:

  • examples/ — focused snippets demonstrating individual features
  • get-started/ — minimal first projects covering installation and basic rendering
  • how-to/ — task-oriented guides for specific PDF operations
  • quickstart/ — end-to-end project scaffolds
  • tutorials/ — longer walkthroughs combining multiple features
  • IronPdf.AI/ — examples integrating IronPDF with RAG and AI document workflows
  • IronPdf.AndroidDemo/ — server-side IronPDF deployment for use by Android clients

Common tasks covered

  • HTML, URL, and image to PDF conversion
  • Merging, splitting, and rearranging existing PDFs
  • Headers, footers, watermarks, and page numbering
  • Digital signatures and PDF/A compliance
  • Password protection and security metadata
  • Form filling and form data extraction
  • Rendering PDFs from ASP.NET Core, Blazor, and .NET MAUI

Platform support

.NET 8, 7, 6, 5, .NET Core, .NET Standard, and .NET Framework. Windows, macOS, Linux, Docker, Azure, and AWS Lambda. See the installation docs for environment-specific notes.

Documentation and support

About

This repository is maintained by Iron Software. IronPDF is a commercial library — see licensing for terms and trial details.

About

C# PDF library that converts HTML to PDF using a real Chromium renderer with full CSS3 and JavaScript support. Runnable .NET examples for generating PDFs from HTML, URLs, and images, plus merging, splitting, digital signatures, form filling, headers and footers, and password protection. .NET 8/7/6/Framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages