GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfLoadingEncryptedEventArgs Class

    Namespace:
    GemBox.Pdf.Security
    Assembly:
    GemBox.Pdf.dll

    Represents data for an event that occurs when a PDF document is being loaded from an encrypted PDF file.

    • C#
    • VB.NET
    public sealed class PdfLoadingEncryptedEventArgs : EventArgs
    Public NotInheritable Class PdfLoadingEncryptedEventArgs
        Inherits EventArgs
    Inheritance:
    System.Object
    System.EventArgs
    PdfLoadingEncryptedEventArgs

    Properties

    Encryption

    Gets the encryption-related information for a PDF file from which a PDF document is being loaded.

    • C#
    • VB.NET
    public PdfEncryption Encryption { get; }
    Public ReadOnly Property Encryption As PdfEncryption
    Property Value
    PdfEncryption

    The encryption-related information for a PDF file from which a PDF document is being loaded.

    Methods

    SetPassword(String)

    Sets the password used to load a PDF document from a password-encrypted PDF file and returns true if the password is correct.

    • C#
    • VB.NET
    public bool SetPassword(string password)
    Public Function SetPassword(password As String) As Boolean
    Parameters
    password
    System.String

    The password used to load a PDF document from a password-encrypted PDF file.

    Returns
    System.Boolean

    false if password is invalid; otherwise, true.

    Exceptions
    System.ArgumentNullException

    password is null.

    See Also

    PDF Specification ISO 32000-1:2008, section '7.6 Encryption'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.