Search Results for

    Show / Hide Table of Contents

    Class PdfPrintDocument

    Inheritance
    System.Object
    PdfPrintDocument
    Namespace: IronPdf.PrintDoc
    Assembly: IronPdf.dll
    Syntax
    public class PdfPrintDocument : PrintDocument

    Constructors

    PdfPrintDocument(Int32, PdfPrintSettings)

    Declaration
    public PdfPrintDocument(int id, PdfPrintSettings settings)
    Parameters
    Type Name Description
    System.Int32 id
    PdfPrintSettings settings

    Properties

    DefaultPageSettings

    Declaration
    [Obsolete("Some of DefaultPageSettings options will not working such as `Color` due to Microsoft Known Bugs https://social.msdn.microsoft.com/Forums/vstudio/en-US/0ac77b0e-26d2-43ff-847b-6d8faf96b653/printer-settings-without-the-printdialog?forum=vbgeneral ", false)]
    public PageSettings DefaultPageSettings { get; set; }
    Property Value
    Type Description
    System.Drawing.Printing.PageSettings

    PrinterSettings

    Declaration
    [Obsolete("Some of PrinterSettings.DefaultPageSettings options will not working such as `Color` due to Microsoft Known Bugs ", false)]
    public PrinterSettings PrinterSettings { get; set; }
    Property Value
    Type Description
    System.Drawing.Printing.PrinterSettings

    Methods

    OnBeforePrintPage(PrintPageEventArgs)

    Declaration
    protected virtual void OnBeforePrintPage(PrintPageEventArgs e)
    Parameters
    Type Name Description
    System.Drawing.Printing.PrintPageEventArgs e

    OnBeforeQueryPageSettings(QueryPageSettingsEventArgs)

    Declaration
    protected virtual void OnBeforeQueryPageSettings(QueryPageSettingsEventArgs e)
    Parameters
    Type Name Description
    System.Drawing.Printing.QueryPageSettingsEventArgs e

    OnBeginPrint(PrintEventArgs)

    Declaration
    protected override void OnBeginPrint(PrintEventArgs e)
    Parameters
    Type Name Description
    System.Drawing.Printing.PrintEventArgs e

    OnPrintPage(PrintPageEventArgs)

    Declaration
    protected override void OnPrintPage(PrintPageEventArgs e)
    Parameters
    Type Name Description
    System.Drawing.Printing.PrintPageEventArgs e

    OnQueryPageSettings(QueryPageSettingsEventArgs)

    Declaration
    protected override void OnQueryPageSettings(QueryPageSettingsEventArgs e)
    Parameters
    Type Name Description
    System.Drawing.Printing.QueryPageSettingsEventArgs e

    Events

    BeforePrintPage

    Declaration
    public event PrintPageEventHandler BeforePrintPage
    Event Type
    Type Description
    System.Drawing.Printing.PrintPageEventHandler

    BeforeQueryPageSettings

    Declaration
    public event QueryPageSettingsEventHandler BeforeQueryPageSettings
    Event Type
    Type Description
    System.Drawing.Printing.QueryPageSettingsEventHandler
    ☀
    ☾
    Downloads
    • Download IronPDF C# Library
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.