Search Results for

    Show / Hide Table of Contents

    Class AspxToPdf.FileBehavior

    Determines the web browser behavior towards a PDF document.

    Inheritance
    System.Object
    AspxToPdf.FileBehavior
    Namespace: IronPdf
    Assembly: IronPdf.dll
    Syntax
    public sealed class FileBehavior : Enum

    The FileBehavior enumeration in IronPDF controls how a generated PDF is delivered to the browser when AspxToPdf.RenderThisPageAsPdf runs.

    It belongs to the IronPdf.AspxToPdf namespace and has two values: InBrowser opens the PDF inline in a Chromium-class viewer, and Attachment triggers a download with an optional filename.

    See PDF from ASPX Pages for both delivery modes side by side.

    Fields

    Attachment

    Instructs the user's web-browser to download the PDF as a file.

    Declaration
    public const AspxToPdf.FileBehavior Attachment
    Field Value
    Type Description
    AspxToPdf.FileBehavior

    InBrowser

    Instructs the user's web-browser to render the PDF wherever possible.

    Declaration
    public const AspxToPdf.FileBehavior InBrowser
    Field Value
    Type Description
    AspxToPdf.FileBehavior

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget