Click or drag to resize

PdfDocumentGetPrintDocument Method

Returns a PrintDocument for the PDF allowing developers granular control over sending the PDF to a Printer.

An assembly reference to System.Drawing is required in your project.

Available in IronPDF for .Net Framework, and .Net Core. For Linux and OSX targets please install the PDFium library to your application or bin directory for this functionality to work.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 5.1.1.20965 (5.1.1.2)
Syntax
public PrintDocument GetPrintDocument()

Return Value

Type: PrintDocument
A PrintDocument.
Exceptions
ExceptionCondition
ExceptionIronPdf must be licensed to use this feature.
See Also