Skip to footer content
IronPDF Logo

Edit PDF in C#

  • Easily edit PDFs in C# to modify text, images, and layout.
  • Save your changes directly to the local file system or export to memory streams.
  • Embed fonts and images for consistent rendering across all devices.
  • Export edited PDFs in various formats to suit your needs.
Trial key

Get your free 30-day Trial Key instantly.

Your trial license will be sent to this address

Check icon No credit card or account creation required

Test Icon

Test in a live environment

Test in production without watermarks.
Works wherever you need it to.

Functional Icon

Fully-functional product

Get 30 days of fully functional product.
Have it up and running in minutes.

Support Icon

24/5 technical support

Full access to our support engineering team during your product trial

HTML Files to PDF
using IronPdf;

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

// Create a PDF from an existing HTML file using C#
var pdf = renderer.RenderHtmlFileAsPdf("example.html");

// Export to a file or Stream
pdf.SaveAs("output.pdf");
Imports IronPdf

' Instantiate Renderer
Private renderer = New ChromePdfRenderer()

' Create a PDF from an existing HTML file using C#
Private pdf = renderer.RenderHtmlFileAsPdf("example.html")

' Export to a file or Stream
pdf.SaveAs("output.pdf")
Install-Package IronPdf

Explore the code and run it to see the sample PDFs

Why IronPDF?

Match the browser. Ship fast. Run on Windows, Linux, macOS & cloud.

Click to view video about Why IronPDF?

Icon Why Fill S1 related to Edit PDF in C#
Pixel-perfect rendering

  • Chromium-grade HTML/CSS/JS ➝ what you see in the browser is what’s in the PDF.
  • Fonts, SVGs, image, complex layouts - consistent across environment.
  • Handles header/footers, page number, margins, and pagination edge cases.

Icon Why Fill S3 related to Edit PDF in C#
Up & running in 5 mins

  • PM >
    Install-Package IronPdf

    ➝ 5-minute quick starts.
  • Small, readable API: generate, merge, watermark, sign, secure.
  • Instant license key, full API access for 40% dev-time saved vs. DIY wrappers.

Icon Why Fill S2 related to Edit PDF in C#
Cross-platform

  • .NET 10, 9, 8 LTS, Framework 4.62+
  • OS: Windows, Linux, macOS.
  • Cloud/containers: Azure, AWS, Docker/Kubernetes, serverless.
Platform that supported

Icon Why Fill S4 related to Edit PDF in C#
Great documentation

  • Copy-paste your first PDF
  • Task-based examples for HTML ➝ PDF, merge/split, stamping, forms, signing.
  • Troubleshooting for fonts, page breaks, headless/ cloud deploys.

Icon Why Fill S5 related to Edit PDF in C#
Perpetual license & 24/5 support

  • Perpetual license - buy once, use forever. Optional updates and renewals.
  • 24/5 engineer support (24/7 in Premium) Real humans, median chat response <1 min
  • 30-day money-back guarantee Not the right fit? Full refund, no questions.

Icon Why Fill S8 related to Edit PDF in C#
For builders

  • Features you'll actually use:
    • merge/split
    • TOC/bookmarks
    • headers/footers/margins
    • watermarks/stamps
    • forms (fill/extract)
    • attachments
    • images
    • permissions
    • compressing
    • digital signing
  • Works everywhere: Windows, Linux, macOS, Docker, Azure, AWS, cloud.

Icon Why Fill S9 related to Edit PDF in C#
For buyers

  • Trusted by 2M+ engineers • 14M+ NuGet installs.
  • Teams report 40% dev-time saved vs DIY/OSS wrappers.
  • Redistribution/SaaS options available.
  • Procurement-friendly: perpetual license, optional renewals, invoice available, multiple payment options (including local).
  • 30-day money-back guarantee.

What our Customers say about IronPDF?

Agorus 40%SAVING

quote_symbol Where in the past we might have to go out and use one plug-in or one package for OCR, and another one for PDF, having them all integrated into one low-cost package was really great for us.

David Jones David Jones Lead Software Engineer Read the case study  

Bg Chart Green related to What our Customers say about IronPDF? SAVING20%

Green2view achieved 20% savings, 30% faster document turnaround, and 100% compliance.

Read the case study  

Bg Chart Blue related to What our Customers say about IronPDF? LESS ADMIN WORK40%

It just works—automated PDF generation delivers pixel-perfect financial reports every time.

Read the case study  

World-Class Engineering,
24-Hour Support
  • Support Team Member 2 related to Edit PDF in C#
  • Support Team Member 4 related to Edit PDF in C#
  • Support Team Member 6 related to Edit PDF in C#
  • Support Team Member 7 related to Edit PDF in C#
  • Support Team Member Iron related to Edit PDF in C#
Talk to an Expert

Iron Support Team

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