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

    The PdfPrintSecurity enumeration in IronPDF controls what printing a viewer may perform on a secured document.

    Part of the IronPdf.Security namespace, the 3 members are NoPrint, PrintLowQuality, and FullPrintRights, covering blocked output, draft-only output, and unrestricted printing. Assign a member to PdfSecuritySettings.AllowUserPrinting before encrypting and saving the file.

    See Set PDF Passwords and Permissions for full C# usage.

    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