Search Results for

    Show / Hide Table of Contents

    Interface IPaperSize

    An Interface for configuring PDF rendering classes which support printing HTML onto a PDF as virtual paper.

    Namespace: IronPdf.Rendering.Abstractions
    Assembly: IronPdf.dll
    Syntax
    public interface IPaperSize

    Properties

    PaperOrientation

    Landscape or Portrait.

    Declaration
    PdfPaperOrientation PaperOrientation { get; set; }
    Property Value
    Type Description
    PdfPaperOrientation

    PaperSize

    Set an output paper size for PDF pages. System.Drawing.Printing.PaperKind.

    Use SetCustomPaperSize(int width, int height) for custom sizes.

    Declaration
    PdfPaperSize PaperSize { get; set; }
    Property Value
    Type Description
    PdfPaperSize

    Methods

    SetCustomPaperSizeInInches(Double, Double)

    Set an output paper size for PDF pages. Dimensions are in Inches.

    Declaration
    void SetCustomPaperSizeInInches(double Width, double Height)
    Parameters
    Type Name Description
    System.Double Width

    Width in Inches (supports double for fractions of an inch).

    System.Double Height

    Height in Inches (supports double for fractions of an inch).

    SetCustomPaperSizeinMilimeters(Double, Double)

    Set an output paper size for PDF pages. Dimensions are in Millimeters.

    Declaration
    void SetCustomPaperSizeinMilimeters(double Width, double Height)
    Parameters
    Type Name Description
    System.Double Width

    Width in MM (supports double for fractions of an millimeter).

    System.Double Height

    Height in MM (supports double for fractions of an millimeter).

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    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.