PdfDocumentPrint Method (Int32, Boolean)

Prints this PDF by sending it to the computer's printer.

For advanced real-world printing options please see overloads of this method and also GetPrintDocument.

if print preview dialogs will be displayed to the user. Default value is .the horizontal and vertical PDF resolutions, in dots per inch. if -1 print with default printer resolution. Default value is -1.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
public int Print(
	int dpi,
	bool showPreview = false


Type: SystemInt32
showPreview (Optional)
Type: SystemBoolean

Return Value

Type: Int32
The number of printed pages.
See Also
Download DLL or Install with Nuget