Class PdfDocumentExtensions
Extension methods for PdfDocument class
Inheritance
System.Object
PdfDocumentExtensions
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public static class PdfDocumentExtensions : Object
Methods
ToDocument(IPdfDocumentId, String, String)
Convert a PdfDocument interface to a full PdfDocument
Declaration
public static PdfDocument ToDocument(this IPdfDocumentId id, string Password = "", string OwnerPassword = "")
Parameters
Type | Name | Description |
---|---|---|
IronSoftware.IPdfDocumentId | id | PdfDocumentId to convert |
System.String | Password | Pdf document password |
System.String | OwnerPassword | Pdf document owner password |
Returns
Type | Description |
---|---|
PdfDocument | Full PdfDocument |
Exceptions
Type | Condition |
---|---|
System.InvalidCastException | Failed to convert |