Document.Document
Document(Stream)
Initialize new Document instance from the input stream.
public Document(Stream input)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Stream with pdf document. |
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(Stream, bool)
Initialize new Document instance from the input stream.
public Document(Stream input, bool isManagedStream)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Stream with pdf document. |
| isManagedStream | Boolean | if set to true inner stream is closed before exit; otherwise, is not. |
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(Stream, string)
Initialize new Document instance from the input stream.
public Document(Stream input, string password)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Input stream object, corresponding pdf is password protected. |
| password | String | User or owner password. |
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(Stream, CertificateEncryptionOptions)
Initialize new Document instance from the input stream.
public Document(Stream input, CertificateEncryptionOptions certOptions)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Input stream object, corresponding pdf is password protected. |
| certOptions | CertificateEncryptionOptions | The certificate encryption options. |
See Also
- class CertificateEncryptionOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(Stream, CertificateEncryptionOptions, bool)
Initialize new Document instance from the input stream.
public Document(Stream input, CertificateEncryptionOptions certOptions, bool isManagedStream)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Stream with pdf document. |
| certOptions | CertificateEncryptionOptions | The certificate encryption options. |
| isManagedStream | Boolean | If set to true inner stream is closed before exit; otherwise, is not. |
See Also
- class CertificateEncryptionOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string, CertificateEncryptionOptions)
Initializes new instance of the Document class for working with encrypted document.
public Document(string filename, CertificateEncryptionOptions certOptions)
| Parameter | Type | Description |
|---|---|---|
| filename | String | Document file name. |
| certOptions | CertificateEncryptionOptions | The certificate encryption options. |
See Also
- class CertificateEncryptionOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string, CertificateEncryptionOptions, bool)
Initializes new instance of the Document class for working with encrypted document.
public Document(string filename, CertificateEncryptionOptions certOptions, bool isManagedStream)
| Parameter | Type | Description |
|---|---|---|
| filename | String | Document file name. |
| certOptions | CertificateEncryptionOptions | The certificate encryption options. |
| isManagedStream | Boolean | if set to true inner stream is closed before exit; otherwise, is not. |
See Also
- class CertificateEncryptionOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(Stream, string, ICustomSecurityHandler)
Initialize new Document instance from the input stream.
public Document(Stream input, string password, ICustomSecurityHandler customSecurityHandler)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Input stream object, corresponding pdf is password protected. |
| password | String | User or owner password. |
| customSecurityHandler | ICustomSecurityHandler | The custom security handler. |
See Also
- interface ICustomSecurityHandler
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(Stream, string, bool)
Initialize new Document instance from the input stream.
public Document(Stream input, string password, bool isManagedStream)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Stream with pdf document. |
| password | String | User or owner password. |
| isManagedStream | Boolean | If set to true inner stream is closed before exit; otherwise, is not. |
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(Stream, string, bool, ICustomSecurityHandler)
Initialize new Document instance from the input stream.
public Document(Stream input, string password, bool isManagedStream,
ICustomSecurityHandler customSecurityHandler)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Stream with pdf document. |
| password | String | User or owner password. |
| isManagedStream | Boolean | If set to true inner stream is closed before exit; otherwise, is not. |
| customSecurityHandler | ICustomSecurityHandler | The custom security handler. |
See Also
- interface ICustomSecurityHandler
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string)
Just init Document using filename. The same as Document.
public Document(string filename)
| Parameter | Type | Description |
|---|---|---|
| filename | String | The name of the pdf document file. |
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string, bool)
Just init Document using filename. The same as Document.
public Document(string filename, bool isManagedStream)
| Parameter | Type | Description |
|---|---|---|
| filename | String | The name of the pdf document file. |
| isManagedStream | Boolean | If set to true inner stream is closed before exit; otherwise, is not. |
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string, string, ICustomSecurityHandler)
Initializes new instance of the Document class for working with encrypted document.
public Document(string filename, string password, ICustomSecurityHandler customSecurityHandler)
| Parameter | Type | Description |
|---|---|---|
| filename | String | Document file name. |
| password | String | User or owner password. |
| customSecurityHandler | ICustomSecurityHandler | The custom security handler. |
See Also
- interface ICustomSecurityHandler
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string, string)
Initializes new instance of the Document class for working with encrypted document.
public Document(string filename, string password)
| Parameter | Type | Description |
|---|---|---|
| filename | String | Document file name. |
| password | String | User or owner password. |
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string, string, bool)
Initializes new instance of the Document class for working with encrypted document.
public Document(string filename, string password, bool isManagedStream)
| Parameter | Type | Description |
|---|---|---|
| filename | String | Document file name. |
| password | String | User or owner password. |
| isManagedStream | Boolean | if set to true inner stream is closed before exit; otherwise, is not. |
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string, string, bool, ICustomSecurityHandler)
Initializes new instance of the Document class for working with encrypted document.
public Document(string filename, string password, bool isManagedStream,
ICustomSecurityHandler customSecurityHandler)
| Parameter | Type | Description |
|---|---|---|
| filename | String | Document file name. |
| password | String | User or owner password. |
| isManagedStream | Boolean | if set to true inner stream is closed before exit; otherwise, is not. |
| customSecurityHandler | ICustomSecurityHandler | The custom security handler. |
See Also
- interface ICustomSecurityHandler
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document()
Initializes empty document.
public Document()
See Also
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(PdfVersion)
Initializes empty document by version.
public Document(PdfVersion version)
| Parameter | Type | Description |
|---|---|---|
| version | PdfVersion | The PDF version. |
See Also
- enum PdfVersion
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(string, LoadOptions)
Opens an existing document from a file providing necessary converting options to get pdf document.
public Document(string filename, LoadOptions options)
| Parameter | Type | Description |
|---|---|---|
| filename | String | Input file to convert into pdf document. |
| options | LoadOptions | Represents properties for converting filename into pdf document. |
See Also
- class LoadOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Document(Stream, LoadOptions)
Opens an existing document from a stream providing necessary converting to get pdf document.
public Document(Stream input, LoadOptions options)
| Parameter | Type | Description |
|---|---|---|
| input | Stream | Input stream to convert into pdf document. |
| options | LoadOptions | Represents properties for converting input into pdf document. |
See Also
- class LoadOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF