Class PdfDocument
Inheritance
System.Object
PdfDocument
Implements
System.IDisposable
Assembly: IronPdf.dll
Syntax
public sealed class PdfDocument : Object, IDisposable
Properties
Info
Declaration
public DocumentInfo Info { get; }
Property Value
IsEncrypted
Declaration
public bool IsEncrypted { get; }
Property Value
Type |
Description |
System.Boolean |
|
Pages
Declaration
public PdfPageCollection Pages { get; }
Property Value
Permissions
Declaration
public DocumentPermissions Permissions { get; }
Property Value
Methods
Dispose()
Declaration
Open(Stream, Boolean, OpenOptions, CancellationToken)
Declaration
public static PdfDocument Open(Stream stream, bool leaveOpen = false, OpenOptions options = null, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Boolean |
leaveOpen |
|
OpenOptions |
options |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Open(String, OpenOptions, CancellationToken)
Declaration
public static PdfDocument Open(string path, OpenOptions options = null, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
path |
|
OpenOptions |
options |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
OpenAsync(Stream, Boolean, OpenOptions, CancellationToken)
Declaration
public static Task<PdfDocument> OpenAsync(Stream stream, bool leaveOpen = false, OpenOptions options = null, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Boolean |
leaveOpen |
|
OpenOptions |
options |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<PdfDocument> |
|
OpenAsync(String, OpenOptions, CancellationToken)
Declaration
public static Task<PdfDocument> OpenAsync(string path, OpenOptions options = null, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
path |
|
OpenOptions |
options |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<PdfDocument> |
|
Implements
System.IDisposable