Paper Printing PDFs
using IronPdf;

// Create a new PDF and print it
var renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf");

// Send the PDF to the default printer to print
// 300 DPI, no user dialog this time ... many overloads to this method
pdf.Print(300);

//For advanced printing we can also use PdfDocument.GetPrintDocument
//Remember to add an assembly reference to System.Drawing.dll or System.Drawing.Common via NuGet.

System.Drawing.Printing.PrintDocument printDocYouCanWorkWith = pdf.GetPrintDocument();
NuGet Download
PM > Install-Package IronPdf
Paper Printing PDFs

Paper Printing PDFs

The code snippet above demonstrates how to print a PDF document using the IronPdf library in .NET. It includes options to print with the default Windows printing dialog or silently, and shows how to utilize the native PrintDocument object for more advanced printing configurations. Make sure to include a reference to System.Drawing.dll if you're utilizing the PrintDocument object for custom settings.

Explore Advanced Printing Techniques with IronPDF
View on GitHub

Ready to Get Started?

Nuget Downloads 21,916,531Version:2026.11just released