Aspose::Pdf::ComHelper::OpenFile method
Contents
[
Hide
]ComHelper::OpenFile(System::String) method
Just create and return Document using filename . The same as Document(Stream).
System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenFile(System::String filename)
Parameter | Type | Description |
---|---|---|
filename | System::String | The name of the pdf document file. |
ReturnValue
Document object
See Also
- Typedef SharedPtr
- Class Document
- Class String
- Class ComHelper
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
ComHelper::OpenFile(System::String, System::SharedPtr<LoadOptions>) method
Open an existing document from a file providing necessary converting oprions to get pdf document.
System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenFile(System::String filename, System::SharedPtr<LoadOptions> options)
Parameter | Type | Description |
---|---|---|
filename | System::String | Input file to convert into pdf document. |
options | System::SharedPtr<LoadOptions> | Represents properties for converting filename into pdf document. |
ReturnValue
Document object
See Also
- Typedef SharedPtr
- Class Document
- Class String
- Class LoadOptions
- Class ComHelper
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
ComHelper::OpenFile(System::String, System::String) method
Initialize and return new instance of the Document class for working with encrypted document.
System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenFile(System::String filename, System::String password)
Parameter | Type | Description |
---|---|---|
filename | System::String | Document file name. |
password | System::String | User or owner password. |
ReturnValue
Document object
See Also
- Typedef SharedPtr
- Class Document
- Class String
- Class ComHelper
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
ComHelper::OpenFile(System::String, System::String, bool) method
Initialize new instance of the Document class for working with encrypted document.
System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenFile(System::String filename, System::String password, bool isManagedStream)
Parameter | Type | Description |
---|---|---|
filename | System::String | Document file name. |
password | System::String | User or owner password. |
isManagedStream | bool | if set to true inner stream is closed before exit; otherwise, is not. |
ReturnValue
Document object
See Also
- Typedef SharedPtr
- Class Document
- Class String
- Class ComHelper
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++