IRONSOFTWAREHOME
Print Settings
using IronPrint;

// Configure print setting
PrintSettings printSettings = new PrintSettings();
printSettings.Dpi = 150;
printSettings.NumberOfCopies = 2;
printSettings.PaperOrientation = PaperOrientation.Portrait;

// Print the document
Printer.Print("newDoc.pdf", printSettings);
Imports IronPrint

' Configure print setting
Dim printSettings As New PrintSettings()
printSettings.Dpi = 150
printSettings.NumberOfCopies = 2
printSettings.PaperOrientation = PaperOrientation.Portrait

' Print the document
Printer.Print("newDoc.pdf", printSettings)
NuGet Download
PM > Install-Package IronPrint
Print Settings

Print Settings

Instantiate the PrintSettings class and configure it according to your requirements. Finally, pass the PrintSettings object to one of the print methods. Explore all the available print settings below:

  • DefaultSettings: A static property that returns a new IronPrint.PrintSettings instance populated with default values.
  • PaperSize: Sets the paperSize used by the printer.
  • PaperOrientation: Specifies the paperOrientation (e.g., Portrait or Landscape).
  • Dpi: Represents the intended printResolution in dots per inch.
    • Remarks: The actual Dpi used for printing might be limited by the capabilities of the printer.
  • NumberOfCopies: Indicates the numberOfCopies to be generated when printing a document.
    • Remarks: In certain platforms, limitations may exist that prevent the accurate reproduction of multiple copies. In such cases, the specified value of IronPrint.PrintSettings.NumberOfCopies might be ignored, resulting in only one copy being printed.
  • PrinterName: Specifies the printerName to use for printing.
    • Remarks: If you choose the printer in a PrintDialog, this setting will be ignored. To obtain the available printer names, you can use IronPrint.Printer.GetPrinterNames or IronPrint.Printer.GetPrinterNamesAsync to fetch the printer name list.
  • PaperMargins: Sets the paperMargins to use for printing in millimeters.
  • Grayscale: Indicates whether to print in grayscale.
  • Flatten: Flatten the PDF before printing, which is useful for displaying form field values and images.
    • Note: The default value is false, indicating that the PDF will NOT be flattened before printing unless explicitly set to true.
  • Tray: Tray used for the printing job. This allows users to specify a particular tray from which paper should be fed into the printer.
    • Remarks: If you choose the tray in a PrintDialog, this setting will be ignored. To obtain the available tray, you can use IronPrint.Printer.GetPrinterTrays(System.String) or IronPrint.Printer.GetPrinterTraysAsync(System.String). The default value is null, indicating the use of the default tray provided by the printer. This tray selection property is available only in Windows.
Explore Detailed Print Settings Guide with IronPrint
View on GitHub

Ready to Get Started?

Nuget Downloads 46,090Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required