Skip to footer content
PRODUCT COMPARISONS

A Comparison Between IronPDF and PdfPig

PdfPig vs IronPDF — Comprehensive Comparison

Every feature evaluated with context — based on real library capabilities for .NET developers

PdfPig
6 / 20
Open-source, read-focused PDF library
4 Yes 4 Partial 12 No
IronPDF
20 / 20
Enterprise .NET PDF library with Chromium engine
20 Yes 0 Partial 0 No
Feature PdfPig IronPDF ✦
PDF Creation & Conversion
HTML/CSS to PDF ✕ Not Supported
No browser engine. Cannot parse or render HTML/CSS. Requires third-party library.
✓ Full Support
Chromium-based engine with pixel-perfect rendering of modern CSS3, Flexbox, and Grid.
JavaScript Execution ✕ Not Supported
No rendering surface — no JS engine available.
✓ Full Support
Fully executes JS during rendering. Ideal for dynamic charts, SPAs, and interactive content.
URL to PDF ✕ Not Supported
Cannot navigate to or capture web pages.
✓ Full Support
RenderUrlAsPdf() captures any live URL with full CSS/JS rendering.
DOCX to PDF ✕ Not Supported
Focused on PDF creation from scratch only.
✓ Full Support
DocxToPdfRenderer converts Word documents while preserving structure and formatting.
Programmatic PDF Generation ~ Partial
PdfDocumentBuilder supports text, paths, and basic shapes. No high-level layout engine — complex designs are difficult.
✓ Full Support
Generate from HTML templates, strings, ASPX views, or images. Chromium handles layout automatically.
Render Pages to Images ~ Add-on Required
PdfPig's core library is not designed for rasterization. The community PdfPig.Rendering.Skia extension with SkiaSharp dependencies adds this capability.
✓ Built-in
Native rasterization to PNG, JPEG, BMP, and other image formats with configurable DPI.
Reading & Extraction
Text Extraction & Layout ✓ Primary Strength
Detailed access to letter positions, bounding boxes, and font metadata. Excellent for data mining and analysis.
✓ Full Support
Extracts text from any PDF with layout awareness. Works alongside IronOCR for scanned documents.
Built-in OCR ✕ Not Supported
Focuses on extracting text already embedded in the PDF structure. No OCR for scanned images.
✓ Via IronOCR
Native integration with IronOCR add-on for OCR on scanned PDFs in 127+ languages.
Read PDF Metadata & Annotations ✓ Supported
Read annotations, form fields, embedded documents, and PDF metadata.
✓ Full Support
Read and edit metadata — author, keywords, dates, custom properties — plus full annotation support.
Editing & Manipulation
Merging & Splitting ~ Partial
Merging via PdfMerger.Merge(). Splitting and rearranging require manual manipulation of document objects.
✓ Full Support
One-line merge, split, append, prepend, and page reordering with intuitive API.
Headers, Footers & Page Numbers ✕ Complex
No one-click API. Must manually calculate coordinates and place text or images on each page.
✓ Full Support
HTML-based headers/footers with auto page numbers, dates, and custom content via simple API calls.
Watermarks ✕ Not Supported
No watermarking capability. Would require a separate library.
✓ Full Support
ApplyWatermark() accepts HTML/CSS for full styling control — opacity, rotation, position.
Stamp Text & Images ✕ Not Supported
Cannot stamp content onto existing PDFs. Requires additional libraries.
✓ Full Support
TextStamper and ImageStamper with Google Fonts, positioning, and per-page control.
Redact Content ✕ Not Supported
No redaction capability available.
✓ Full Support
RedactTextOnAllPages() removes sensitive text permanently in a single line.
Security & Compliance
Encryption & Passwords ✕ Not Supported
No built-in encryption, password protection, or permission management.
✓ Full Support
AES encryption, owner/user passwords, granular permissions (print, copy, annotate, form fill).
Digital Signatures ✕ Not Supported
No cryptographic signing or certificate-based workflows.
✓ Full Support
Sign with X509 certificates via PdfSignature. Supports PFX/P12 certificate files.
PDF/A & PDF/UA Compliance ✕ Not Supported
No features for creating or validating archival (PDF/A) or accessibility (PDF/UA) standards.
✓ Full Support
Native PDF/A archival and PDF/UA accessibility compliance for enterprise and government use.
Platform & Deployment
Cross-Platform Support ~ Partial
Core library is pure C#, but font handling and Skia rendering add-on may behave differently or require extra setup on Linux/macOS.
✓ Full Support
Windows, Linux, macOS, x64, x86, ARM. .NET 6–10, Core, Standard 2.0+, Framework 4.6.2+.
Server / Docker / Cloud ✓ Supported
Lightweight with minimal dependencies. Friendly for Azure Functions, AWS Lambda, and Docker containers.
✓ Full Support
Docker, Azure, AWS, IIS, and all major cloud platforms. Official Docker images and deployment guides.
Licensing & Support
Licensing Model ✓ Apache 2.0
Free and open-source. Safe for commercial use with no royalties.
✓ Commercial
Perpetual licenses starting at Lite tier. 30-day fully functional free trial with no watermarks.
Commercial Support & SLA ✕ Community Only
GitHub issues and community support. No guaranteed response times or SLA.
✓ 24/5 Support
Dedicated engineering support with guaranteed SLA. Email, live chat, and phone.
Documentation ✓ Good
High-quality README, Wiki, and clear examples covering supported scope.
✓ Extensive
Full API reference, 100+ how-tos, tutorials, code examples, troubleshooting guides, and video content.

PdfPig is an excellent choice for lightweight text extraction and PDF reading on a budget.
For full-featured PDF generation, editing, security, and enterprise compliance — start your free 30-day IronPDF trial.

Choosing a .NET PDF library depends on what your project actually requires. PdfPig and IronPDF serve different primary use cases — this comparison covers their features, cross-platform support, and licensing so you can evaluate fit against your requirements.

What Are IronPDF and PdfPig?

IronPDF is a commercial .NET PDF library that ships HTML-to-PDF conversion, document manipulation, encryption, digital signing, and image rasterization in a single NuGet package. Whether you need to create PDF documents from HTML content, apply watermarks to existing files, configure granular security permissions, or export pages as images, IronPDF covers these operations without requiring additional dependencies. Extensive documentation — including 100+ how-to guides — and dedicated engineering support help reduce ramp-up time.

PdfPig is an open-source Apache 2.0 licensed library that allows users to read and create PDFs in C#, F#, and other .NET languages. PdfPig provides detailed access to letter positions, bounding boxes, and font metadata — making it a strong choice for text extraction and PDF analysis. Its focused scope means it stays lightweight, though teams whose requirements expand into generation, security, or manipulation will need to evaluate additional tooling alongside it. For teams in the latter category, IronPDF's [free 30-day trial](trial-license covers every operation in this comparison.

Cross-Platform Compatibility

Cross-platform support determines whether a library can deploy to your target environment before any feature evaluation begins. Here is what each library supports.

IronPDF

IronPDF supports a wide range of platforms, ensuring that you can work in your preferred environment.

NuGet Install with NuGet

PM >  Install-Package IronPdf

Check out IronPDF on NuGet for quick installation. With over 10 million downloads, it’s transforming PDF development with C#. You can also download the DLL or Windows installer.

Here's a breakdown of its compatibility:

  • .NET versions:

    • C#, VB.NET, F#
    • .NET Core (8, 7, 6, 5, and 3.1+)
    • .NET Standard (2.0+)
    • .NET Framework (4.6.2+)
  • App environments: IronPDF works in app environments including Windows, Linux, Mac, Docker, Azure, and AWS.

  • IDEs: Works with IDEs such as Microsoft Visual Studio and JetBrains Rider & ReSharper.

  • OS and Processors: Supports several different OS & processors including Windows, Mac, Linux, x64, x86, ARM.

For more information, visit the detailed IronPDF Compatibility Guide.

PdfPig

  • .NET Versions

    • .NET Standard (2.0+)
    • .NET Core (2.0+)
    • .NET Framework (4.6.1+)
  • Platforms: PdfPig works on various platforms such as Windows, macOS, and Linux.

How Do PdfPig and IronPDF Compare on Features?

Both IronPDF and PdfPig offer a range of features for handling PDF documents. Here's a comparison of their key functionalities:

IronPDF Features

  • HTML to PDF conversion: IronPDF can handle HTML to PDF conversion. With its full support for modern web standards, you can be assured that IronPDF will consistently return pixel-perfect PDFs from your HTML content.
  • PDF file conversion: Need to convert file formats other than HTML to PDF? IronPDF supports the conversion of many different file formats including DOCX to PDF, RTF to PDF, Image to PDF, URL to PDF, and even PDF to HTML, all while maintaining the desired document structure.
  • Security features: With IronPDF, you can always be assured that any sensitive PDF files are secure thanks to its security features. Use IronPDF to encrypt your PDF files, set passwords, and set permissions for your PDF files.
  • PDF editing features: With IronPDF, you can edit PDF files with ease. IronPDF offers editing features such as adding headers and footers, stamping text and images onto the PDF pages, adding custom watermarks to the PDF, working with PDF forms, and merging PDF files.

For detailed feature information about the features offered by IronPDF, visit the IronPDF Features Page.

PdfPig Features

  • Extract content: With PdfPig, you can extract text from your PDFs.
  • Read PDF data: PdfPig supports the ability to read PDF annotations, forms, and embedded documents. In addition to this, you can use PdfPig to gain access to the PDF metadata.
  • Create PDF documents: Use PdfPig to create PDF documents. You can use this feature to create PDF documents with control over PDF specification, page sizes, and text and path operations within the document.

Feature-by-Feature Code Comparison

HTML to PDF Conversion

HTML to PDF Conversion Example is a simple task, yet it can be helpful depending on your needs. Whether you want to create a PDF document documenting a website from your portfolio or need to create PDFs from HTML content for your work environment, you'll need a strong HTML to PDF converter so you can consistently produce high-quality PDFs.

IronPDF Code Example:

using IronPdf;

// Enable web security to disable local disk access or cross-origin requests
Installation.EnableWebSecurity = true;

// Instantiate Chrome PDF Renderer
var renderer = new ChromePdfRenderer();

// Create a PDF from an HTML string using C#
var pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>");
pdf.SaveAs("output.pdf");

// Advanced Example with HTML Assets
// Render HTML with external assets: images, CSS, and JavaScript.
var myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"C:\site\assets\");
myAdvancedPdf.SaveAs("html-with-assets.pdf");
using IronPdf;

// Enable web security to disable local disk access or cross-origin requests
Installation.EnableWebSecurity = true;

// Instantiate Chrome PDF Renderer
var renderer = new ChromePdfRenderer();

// Create a PDF from an HTML string using C#
var pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>");
pdf.SaveAs("output.pdf");

// Advanced Example with HTML Assets
// Render HTML with external assets: images, CSS, and JavaScript.
var myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"C:\site\assets\");
myAdvancedPdf.SaveAs("html-with-assets.pdf");
Imports IronPdf

' Enable web security to disable local disk access or cross-origin requests
Installation.EnableWebSecurity = True

' Instantiate Chrome PDF Renderer
Dim renderer = New ChromePdfRenderer()

' Create a PDF from an HTML string using C#
Dim pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>")
pdf.SaveAs("output.pdf")

' Advanced Example with HTML Assets
' Render HTML with external assets: images, CSS, and JavaScript.
Dim myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", "C:\site\assets\")
myAdvancedPdf.SaveAs("html-with-assets.pdf")
$vbLabelText   $csharpLabel

PdfPig Code Example:

HTML-to-PDF conversion is outside PdfPig's current scope — the library is designed around low-level PDF creation and content extraction rather than rendering web content. Teams that need this capability typically pair PdfPig with a separate rendering library, or evaluate IronPDF's built-in Chromium engine, which handles HTML, CSS3, and JavaScript in a single pass.

When you want to convert HTML content or web pages to a PDF format, IronPDF provides a dedicated, concise API for the task, while PdfPig defers rendering to external libraries.

Encrypting PDF Files

When you are dealing with any sensitive or private PDF files, you will be looking for a PDF tool that can handle security tasks such as encrypting PDF files, editing document metadata, and adding a password. Let's now take a look at how these tools would approach this scenario.

IronPDF Code Example:

using IronPdf;
using System;

// Open an Encrypted File, or create a new PDF from HTML
var pdf = PdfDocument.FromFile("encrypted.pdf", "password");

// Edit metadata
pdf.MetaData.Author = "Satoshi Nakamoto";
pdf.MetaData.Keywords = "SEO, Friendly";
pdf.MetaData.ModifiedDate = DateTime.Now;

// Edit file security settings

// Make a PDF read-only and disallow copy & paste and printing
pdf.SecuritySettings.RemovePasswordsAndEncryption();
pdf.SecuritySettings.MakePdfDocumentReadOnly("secret-key");
pdf.SecuritySettings.AllowUserAnnotations = false;
pdf.SecuritySettings.AllowUserCopyPasteContent = false;
pdf.SecuritySettings.AllowUserFormData = false;
pdf.SecuritySettings.AllowUserPrinting = IronPdf.Security.PdfPrintSecurity.FullPrintRights;

// Change or set the document encryption password
pdf.Password = "my-password";
pdf.SaveAs("secured.pdf");
using IronPdf;
using System;

// Open an Encrypted File, or create a new PDF from HTML
var pdf = PdfDocument.FromFile("encrypted.pdf", "password");

// Edit metadata
pdf.MetaData.Author = "Satoshi Nakamoto";
pdf.MetaData.Keywords = "SEO, Friendly";
pdf.MetaData.ModifiedDate = DateTime.Now;

// Edit file security settings

// Make a PDF read-only and disallow copy & paste and printing
pdf.SecuritySettings.RemovePasswordsAndEncryption();
pdf.SecuritySettings.MakePdfDocumentReadOnly("secret-key");
pdf.SecuritySettings.AllowUserAnnotations = false;
pdf.SecuritySettings.AllowUserCopyPasteContent = false;
pdf.SecuritySettings.AllowUserFormData = false;
pdf.SecuritySettings.AllowUserPrinting = IronPdf.Security.PdfPrintSecurity.FullPrintRights;

// Change or set the document encryption password
pdf.Password = "my-password";
pdf.SaveAs("secured.pdf");
Imports IronPdf
Imports System

' Open an Encrypted File, or create a new PDF from HTML
Private pdf = PdfDocument.FromFile("encrypted.pdf", "password")

' Edit metadata
pdf.MetaData.Author = "Satoshi Nakamoto"
pdf.MetaData.Keywords = "SEO, Friendly"
pdf.MetaData.ModifiedDate = DateTime.Now

' Edit file security settings

' Make a PDF read-only and disallow copy & paste and printing
pdf.SecuritySettings.RemovePasswordsAndEncryption()
pdf.SecuritySettings.MakePdfDocumentReadOnly("secret-key")
pdf.SecuritySettings.AllowUserAnnotations = False
pdf.SecuritySettings.AllowUserCopyPasteContent = False
pdf.SecuritySettings.AllowUserFormData = False
pdf.SecuritySettings.AllowUserPrinting = IronPdf.Security.PdfPrintSecurity.FullPrintRights

' Change or set the document encryption password
pdf.Password = "my-password"
pdf.SaveAs("secured.pdf")
$vbLabelText   $csharpLabel

PdfPig Code Example:

Encryption, password protection, and permission management are outside PdfPig's current scope. Because the library focuses on reading and low-level PDF creation, teams that need security features typically bring in an additional library to handle that layer.

When dealing with sensitive PDF files, IronPDF provides encryption, metadata editing, and granular permission control as first-class operations, while PdfPig requires an additional library for these tasks.

Redacting PDF Content

What if you want to redact certain words or sections of content from your PDF files? This is another common need when working with a PDF file, so let us see if these PDF libraries are up to the task.

IronPDF Code Example:

using IronPdf;

PdfDocument document = PdfDocument.FromFile("novel.pdf");

// Redact 'are' phrase from all pages
document.RedactTextOnAllPages("are");
document.SaveAs("redacted.pdf");
using IronPdf;

PdfDocument document = PdfDocument.FromFile("novel.pdf");

// Redact 'are' phrase from all pages
document.RedactTextOnAllPages("are");
document.SaveAs("redacted.pdf");
Imports IronPdf

Private document As PdfDocument = PdfDocument.FromFile("novel.pdf")

' Redact 'are' phrase from all pages
document.RedactTextOnAllPages("are")
document.SaveAs("redacted.pdf")
$vbLabelText   $csharpLabel

PdfPig Code Example:

Redaction is not part of PdfPig's feature set — the library is designed for reading and extraction rather than modifying existing PDF content.

IronPDF handles redaction in a single method call (RedactTextOnAllPages), which makes it straightforward to automate compliance workflows. For teams that need to remove sensitive text from documents, this is a common inflection point when comparing the two libraries.

Digitally Signing PDF documents

While this is less likely to be an essential part of your daily PDF manipulation needs, depending on your work environment, you may come across times when you might need to digitally sign your PDF files. So now we will look at how these two tools might handle that.

IronPDF Code Example:

using IronPdf;
using IronPdf.Signing;
using System.Security.Cryptography.X509Certificates;

ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>foo</h1>");

// Create X509Certificate2 object with X509KeyStorageFlags set to Exportable
X509Certificate2 cert = new X509Certificate2("IronSoftware.pfx", "123456", X509KeyStorageFlags.Exportable);

// Create PdfSignature object
var sig = new PdfSignature(cert);

// Sign PDF document
pdf.Sign(sig);
pdf.SaveAs("signed.pdf");
using IronPdf;
using IronPdf.Signing;
using System.Security.Cryptography.X509Certificates;

ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>foo</h1>");

// Create X509Certificate2 object with X509KeyStorageFlags set to Exportable
X509Certificate2 cert = new X509Certificate2("IronSoftware.pfx", "123456", X509KeyStorageFlags.Exportable);

// Create PdfSignature object
var sig = new PdfSignature(cert);

// Sign PDF document
pdf.Sign(sig);
pdf.SaveAs("signed.pdf");
Imports IronPdf
Imports IronPdf.Signing
Imports System.Security.Cryptography.X509Certificates

Private renderer As New ChromePdfRenderer()
Private pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>foo</h1>")

' Create X509Certificate2 object with X509KeyStorageFlags set to Exportable
Private cert As New X509Certificate2("IronSoftware.pfx", "123456", X509KeyStorageFlags.Exportable)

' Create PdfSignature object
Private sig = New PdfSignature(cert)

' Sign PDF document
pdf.Sign(sig)
pdf.SaveAs("signed.pdf")
$vbLabelText   $csharpLabel

PdfPig Code Example:

PdfPig is not designed for cryptographic signing workflows. Teams that need digital signatures alongside PdfPig's extraction capabilities typically integrate a separate signing library.

IronPDF includes certificate-based signing as a built-in operation — a few lines of code using PdfSignature with an X509 certificate. For teams whose workflow requires both extraction and signing, this removes the need to manage an additional dependency.

Applying Custom Watermarks to Your PDFs

Are you working with sensitive documents or looking to protect your work and avoid others stealing it to claim as their own? Then applying custom watermarks to your PDF pages can be just what you need. Let's see how the libraries tackle this task.

IronPDF Code Example:

using IronPdf;

// Stamps a Watermark onto a new or existing PDF
var renderer = new ChromePdfRenderer();

var pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf");
pdf.ApplyWatermark("<h2 style='color:red'>SAMPLE</h2>", 30, IronPdf.Editing.VerticalAlignment.Middle, IronPdf.Editing.HorizontalAlignment.Center);
pdf.SaveAs(@"C:\Path\To\Watermarked.pdf");
using IronPdf;

// Stamps a Watermark onto a new or existing PDF
var renderer = new ChromePdfRenderer();

var pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf");
pdf.ApplyWatermark("<h2 style='color:red'>SAMPLE</h2>", 30, IronPdf.Editing.VerticalAlignment.Middle, IronPdf.Editing.HorizontalAlignment.Center);
pdf.SaveAs(@"C:\Path\To\Watermarked.pdf");
Imports IronPdf

' Stamps a Watermark onto a new or existing PDF
Private renderer = New ChromePdfRenderer()

Private pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf")
pdf.ApplyWatermark("<h2 style='color:red'>SAMPLE</h2>", 30, IronPdf.Editing.VerticalAlignment.Middle, IronPdf.Editing.HorizontalAlignment.Center)
pdf.SaveAs("C:\Path\To\Watermarked.pdf")
$vbLabelText   $csharpLabel

PdfPig Code Example:

Watermarking is outside PdfPig's current scope.

IronPDF's ApplyWatermark() method accepts HTML and CSS, which gives you precise control over opacity, rotation, and positioning. If you are already familiar with web styling, the learning curve is minimal — you style the watermark the same way you would style a <div>.

Stamping Images and Text to PDF documents

Stamping images and text onto your PDF files is much the same as applying watermarks in a sense, and could be used for similar reasons, but can these two libraries carry out this task?

IronPDF Code Example:

using IronPdf;
using IronPdf.Editing;

// Create the PDF from HTML content
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>");

// Create text stamper
TextStamper textStamper = new TextStamper()
{
    Text = "Text Stamper!",
    FontFamily = "Bungee Spice",
    UseGoogleFont = true,
    FontSize = 30,
    IsBold = true,
    IsItalic = true,
    VerticalAlignment = VerticalAlignment.Top,
};

// Stamp the text stamper
pdf.ApplyStamp(textStamper);
pdf.SaveAs("stampText.pdf");
using IronPdf;
using IronPdf.Editing;

// Create the PDF from HTML content
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>");

// Create text stamper
TextStamper textStamper = new TextStamper()
{
    Text = "Text Stamper!",
    FontFamily = "Bungee Spice",
    UseGoogleFont = true,
    FontSize = 30,
    IsBold = true,
    IsItalic = true,
    VerticalAlignment = VerticalAlignment.Top,
};

// Stamp the text stamper
pdf.ApplyStamp(textStamper);
pdf.SaveAs("stampText.pdf");
Imports IronPdf
Imports IronPdf.Editing

' Create the PDF from HTML content
Private renderer As New ChromePdfRenderer()
Private pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>")

' Create text stamper
Private textStamper As New TextStamper() With {
	.Text = "Text Stamper!",
	.FontFamily = "Bungee Spice",
	.UseGoogleFont = True,
	.FontSize = 30,
	.IsBold = True,
	.IsItalic = True,
	.VerticalAlignment = VerticalAlignment.Top
}

' Stamp the text stamper
pdf.ApplyStamp(textStamper)
pdf.SaveAs("stampText.pdf")
$vbLabelText   $csharpLabel
using IronPdf;
using IronPdf.Editing;
using System;

// Create the PDF from HTML content
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>");

// Create image stamper
ImageStamper imageStamper = new ImageStamper(new Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg"))
{
    VerticalAlignment = VerticalAlignment.Top,
};

// Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0);
pdf.SaveAs("stampImage.pdf");
using IronPdf;
using IronPdf.Editing;
using System;

// Create the PDF from HTML content
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>");

// Create image stamper
ImageStamper imageStamper = new ImageStamper(new Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg"))
{
    VerticalAlignment = VerticalAlignment.Top,
};

// Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0);
pdf.SaveAs("stampImage.pdf");
Imports IronPdf
Imports IronPdf.Editing
Imports System

' Create the PDF from HTML content
Private renderer As New ChromePdfRenderer()
Private pdf As PdfDocument = renderer.RenderHtmlAsPdf("<h1>Example HTML Document!</h1>")

' Create image stamper
Private imageStamper As New ImageStamper(New Uri("https://ironpdf.com/img/svgs/iron-pdf-logo.svg")) With {.VerticalAlignment = VerticalAlignment.Top}

' Stamp the image stamper
pdf.ApplyStamp(imageStamper, 0)
pdf.SaveAs("stampImage.pdf")
$vbLabelText   $csharpLabel

PdfPig Code Example:

PdfPig is not designed to overlay content onto existing PDF pages. Stamping text or images onto a finished document would require an additional library.

IronPDF includes dedicated TextStamper and ImageStamper classes with support for Google Fonts, TrueType fonts, per-page targeting, and fine-grained positioning. For teams that need to annotate or brand existing PDFs programmatically, this eliminates the need to assemble separate libraries for the task.

DOCX to PDF Conversion

Another common conversion task other than converting HTML to PDF is converting DOCX files to a PDF format. So, if this is something that you come across in your day-to-day tasks, or even just once in a while, having a tool that can easily handle this task can make a huge difference in your workplace efficiency.

IronPDF Code Example:

using IronPdf;

// Instantiate Renderer
DocxToPdfRenderer renderer = new DocxToPdfRenderer();

// Render from DOCX file
PdfDocument pdf = renderer.RenderDocxAsPdf("Modern-chronological-resume.docx");

// Save the PDF
pdf.SaveAs("pdfFromDocx.pdf");
using IronPdf;

// Instantiate Renderer
DocxToPdfRenderer renderer = new DocxToPdfRenderer();

// Render from DOCX file
PdfDocument pdf = renderer.RenderDocxAsPdf("Modern-chronological-resume.docx");

// Save the PDF
pdf.SaveAs("pdfFromDocx.pdf");
Imports IronPdf

' Instantiate Renderer
Private renderer As New DocxToPdfRenderer()

' Render from DOCX file
Private pdf As PdfDocument = renderer.RenderDocxAsPdf("Modern-chronological-resume.docx")

' Save the PDF
pdf.SaveAs("pdfFromDocx.pdf")
$vbLabelText   $csharpLabel

PdfPig Code Example:

DOCX-to-PDF conversion is outside PdfPig's design scope. Like HTML rendering, document-format conversion relies on layout engines that PdfPig intentionally does not bundle.

IronPDF's DocxToPdfRenderer converts Word documents to PDF in three lines of code while preserving structure and formatting. For teams that routinely convert office documents, this avoids the overhead of integrating a separate conversion pipeline.

Pricing and Licensing: IronPDF vs. PdfPig Library

IronPDF Pricing and Licensing

IronPDF offers diverse pricing options for licenses. Developers can also purchase Iron Suite, which gives access to all of Iron Software's products at the price of two. If you're not ready to buy a license, IronPDF provides a free trial that lasts 30 days.

  • Perpetual licenses: Offers a range of perpetual licenses depending on the size of your team, your project needs, and the number of locations. Each license type comes with email support.
  • Lite License: This license supports one developer, one location, and one project. (Price unlisted)
  • Plus License: Supporting three developers, three locations, and three projects, this is the next step up from the lite license and costs $1,199. The Plus license offers chat support and phone support in addition to basic email support.
  • Professional License: This license is suitable for larger teams, supporting ten developers, ten locations, and ten projects for $2,399. It offers the same contact support channels as the previous tiers but also offers screen-sharing support.
  • Royalty-free redistribution: IronPDF's licensing also offers royalty-free redistribution coverage for an extra $2,399.
  • Uninterrupted product support: IronPDF offers access to ongoing product updates, security feature upgrades, and support from their engineering team for either $1,199/year or a one-time purchase of $2,399 for a 5-year coverage.
  • Iron Suite: For $1,498, you get access to all Iron Software products including IronPDF, IronOCR, IronWord, IronXL, IronBarcode, IronQR, IronZIP, IronPrint, and IronWebScraper.

PdfPig Licensing

PdfPig is licensed under the Apache License 2.0, which means it is free to use in both personal and commercial projects with no royalties. This is a genuine advantage for teams operating on tight budgets or for projects where PDF reading and extraction are the primary requirements. Where teams often hit friction is when project needs expand beyond PdfPig's focused scope — at that point, the additional libraries and integration work required can factor into the overall cost equation.

Beyond license cost, total project cost includes the developer hours spent assembling separate libraries for HTML rendering, document security, watermarking, and content stamping — capabilities that PdfPig's architecture intentionally leaves to third-party packages. For teams evaluating cost over a multi-year project lifecycle, these integration and maintenance expenses frequently eclipse the difference between open-source and commercial licensing.

What Documentation and Support Are Available?

IronPDF provides detailed documentation and multiple support channels to help developers get productive quickly:

IronPDF

  • Comprehensive Documentation: Extensive and user-friendly documentation covering all features.
  • 24/5 Support: Active engineer support is available.
  • Video Tutorials: Step-by-step video guides are available on YouTube.
  • Community Forum: Engaged community for additional support.
  • Regular Updates: Monthly product updates to ensure the latest features and security patches.

For more information, check out IronPDF's extensive documentation and guides, and visit the Iron Software YouTube channel.

PdfPig

  • GitHub Wiki: The PdfPig GitHub includes a wiki that details the features PdfPig has to offer, as well as how to use them.
  • Issue Reporting: When using PdfPig, if you were to come across any issues, you can easily file an issue report on their GitHub.
  • Updates: PdfPig appears to get regular updates, and you can read about what was added in recent updates on their GitHub.

Which Library Should You Choose?

The right choice depends on where your project sits today — and where it is headed. PdfPig provides solid text extraction and low-level PDF reading under a permissive Apache 2.0 license, making it a strong fit for analysis-focused workloads where budget is a primary constraint.

For teams whose requirements extend into HTML rendering, document conversion, security, or compliance, IronPDF bundles those capabilities as first-class operations in a single NuGet package. Its extensive documentation and dedicated engineering support also reduce the ramp-up time for larger teams.

You can try the 30-day free trial to check out their available features.

Please notePDFPig is a registered trademark of its respective owner. This site is not affiliated with, endorsed by, or sponsored by PDFPig. All product names, logos, and brands are property of their respective owners. Comparisons are for informational purposes only and reflect publicly available information at the time of writing.

Frequently Asked Questions

How can I convert HTML to PDF in C#?

You can use IronPDF's RenderHtmlAsPdf method to convert HTML strings into PDFs. This feature allows you to seamlessly convert web pages or HTML documents to PDFs with high fidelity.

What are the differences between PdfPig and other .NET PDF libraries?

PdfPig is an open-source C# library focused on reading and creating PDF documents but lacks features like HTML to PDF conversion and security. IronPDF, on the other hand, offers a comprehensive set of features including conversion, encryption, and editing, making it suitable for more complex PDF tasks.

Can I secure PDF documents using a .NET library?

Yes, IronPDF provides robust security features such as PDF encryption, password protection, and setting permissions to ensure your PDF documents are secure.

Is there a .NET library that supports DOCX to PDF conversion?

IronPDF offers a straightforward solution for converting DOCX files to PDF, allowing developers to perform this task efficiently with minimal code.

What support options are available for .NET PDF libraries?

IronPDF offers extensive support options including 24/5 engineer support, comprehensive documentation, video tutorials, and a community forum, making it easier for developers to leverage the library's capabilities.

Does PdfPig allow for digital signing of PDFs?

No, PdfPig does not natively support digital signing of PDF documents. For digital signing, you would need to integrate additional libraries.

What pricing models are available for comprehensive .NET PDF libraries?

IronPDF provides various pricing options including perpetual licenses tailored for different team sizes and project needs, as well as an Iron Suite package, with a 30-day free trial available to evaluate its features.

Is PdfPig suitable for basic PDF operations in a budget-friendly manner?

Yes, PdfPig is a cost-effective solution for basic PDF operations, as it is free to use under the Apache License 2.0. However, it lacks certain advanced features compared to commercial libraries.

Can I edit PDFs using a .NET library?

With IronPDF, you can edit PDFs easily. It allows you to manipulate text, images, and annotations within PDF documents, providing a versatile toolset for comprehensive PDF editing.

What platforms are supported by this .NET PDF library?

IronPDF supports a wide range of platforms including Windows, Linux, Mac, Docker, Azure, and AWS, making it compatible with various .NET versions and IDEs for broad development needs.

Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...

Read More

Iron Support Team

We're online 24 hours, 5 days a week.
Chat
Email
Call Me