Class PdfPrintDocument
PDF Class enabling developers granular control over sending printable documents to a physical printer.
An assembly reference to System.Drawing is required in your project.
Note: 'Pdf
Inheritance
Namespace: IronPdf.PrintDoc
Assembly: IronPdf.dll
Syntax
public class PdfPrintDocument : PrintDocument
Constructors
PdfPrintDocument(PdfDocument, PdfPrintSettings, PrinterSettings, PrintController)
Initializes a new instance of the System.
Declaration
public PdfPrintDocument(PdfDocument pdfDocument, PdfPrintSettings settings, PrinterSettings printerSettings, PrintController printController)
Parameters
Type | Name | Description |
---|---|---|
Pdf |
pdfDocument | An Pdf |
Pdf |
settings | A Pdf |
System. |
printerSettings | A System. |
System. |
printController | The System. |
Properties
FlattenDocument
Flatten document before rendering - useful for displaying form field values of a PDF
Declaration
public bool FlattenDocument { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
OnBeforePrintPage(PrintPageEventArgs)
Represents the method that will handle the System.
event of a System.
Declaration
protected virtual void OnBeforePrintPage(PrintPageEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System. |
e | System. |
OnBeforeQueryPageSettings(QueryPageSettingsEventArgs)
Represents the method that handles the System.
event of a System.
Declaration
protected virtual void OnBeforeQueryPageSettings(QueryPageSettingsEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System. |
e | A System. |
OnBeginPrint(PrintEventArgs)
Raises the System.
after the System.
the first page of the document prints.
Declaration
protected override void OnBeginPrint(PrintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System. |
e | A System. |
OnPrintPage(PrintPageEventArgs)
Raises the System.
before a page prints.
Declaration
protected override void OnPrintPage(PrintPageEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System. |
e | A System. |
OnQueryPageSettings(QueryPageSettingsEventArgs)
Raises the System.
is called immediately before each System.
event.
Declaration
protected override void OnQueryPageSettings(QueryPageSettingsEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System. |
e | A System. |
Events
BeforePrintPage
Represents the method that will handle the System.
event of a System.
Declaration
public event PrintPageEventHandler BeforePrintPage
Event Type
Type | Description |
---|---|
System. |
BeforeQueryPageSettings
Represents the method that handles the System.
event of a System.
Declaration
public event QueryPageSettingsEventHandler BeforeQueryPageSettings
Event Type
Type | Description |
---|---|
System. |