File Formats

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfInvalidPasswordException

    Show / Hide Table of Contents

    Class PdfInvalidPasswordException

    Indicates that the provided user or owner password is not valid.

    Inheritance
    System.Object
    System.Exception
    PdfException
    PdfInvalidPasswordException
    Implements
    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.ToString()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.Message
    System.Exception.Data
    System.Exception.InnerException
    System.Exception.TargetSite
    System.Exception.StackTrace
    System.Exception.HelpLink
    System.Exception.Source
    System.Exception.HResult
    System.Exception.SerializeObjectState
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Pdf
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class PdfInvalidPasswordException : PdfException, ISerializable, _Exception
    Examples
    PdfLoadedDocument document;
    try
    {
     //Load an existing document.
    document = new PdfLoadedDocument("input.pdf");
    }
    catch (Syncfusion.Pdf.PdfException)
    {
    //Load an existing document.
    document = new PdfLoadedDocument("input.pdf", true);
    }
    document.Save("Output.pdf");
    document.Close(true);
    'Load an existing document.
    Dim document As PdfLoadedDocument
    Try
    document = New PdfLoadedDocument("input.pdf")
    Catch exception As Syncfusion.Pdf.PdfException
    document = New PdfLoadedDocument("input.pdf", True)
    End Try
    'Save and Close the document.
    document.Save("Output.pdf")
    document.Close(True)

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved