Search Results for

    Show / Hide Table of Contents

    Class PdfPrintSecurity

    Controls PDF printing permissions for secured documents. Restricts how users can print without the owner password.

    // Prevent printing confidential docs:
    pdf.SecuritySettings.AllowUserPrinting = PdfPrintSecurity.NoPrint;
    pdf.SecuritySettings.UserPassword = "view_only";
    
    // Allow draft quality printing only:
    pdf.SecuritySettings.AllowUserPrinting = PdfPrintSecurity.PrintLowQuality;
    
    // Allow full quality printing:
    pdf.SecuritySettings.AllowUserPrinting = PdfPrintSecurity.FullPrintRights;

    Low quality typically means 150 DPI max

    Print restrictions require compliant PDF viewers

    See: https://ironpdf.com/how-to/pdf-security/

    Inheritance
    System.Object
    PdfPrintSecurity
    Namespace: IronPdf.Security
    Assembly: IronPdf.dll
    Syntax
    public sealed class PdfPrintSecurity : Enum

    Fields

    FullPrintRights

    Unrestricted printing at any quality. Users can print at full resolution for any purpose.

    // Standard document with print capability:
    pdf.SecuritySettings.AllowUserPrinting = PdfPrintSecurity.FullPrintRights;
    pdf.SecuritySettings.UserPassword = "reader";
    // Users can print for any purpose
    Declaration
    public const PdfPrintSecurity FullPrintRights
    Field Value
    Type Description
    PdfPrintSecurity

    NoPrint

    Printing completely disabled without owner password. Document is view-only, protects against unauthorized distribution.

    // Digital-only document:
    pdf.SecuritySettings.AllowUserPrinting = PdfPrintSecurity.NoPrint;
    pdf.SecuritySettings.UserPassword = "screen_only";
    pdf.SaveAs("confidential_no_print.pdf");
    Declaration
    public const PdfPrintSecurity NoPrint
    Field Value
    Type Description
    PdfPrintSecurity

    PrintLowQuality

    Low-resolution printing only (typically 150 DPI). Allows draft prints but prevents high-quality reproductions.

    // Allow review prints but not production quality:
    pdf.SecuritySettings.AllowUserPrinting = PdfPrintSecurity.PrintLowQuality;
    // Users can print for review, but not for distribution
    Declaration
    public const PdfPrintSecurity PrintLowQuality
    Field Value
    Type Description
    PdfPrintSecurity

    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
    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.