Aspose::Pdf::ComHelper::OpenFile method

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)
ParameterTypeDescription
filenameSystem::StringThe name of the pdf document file.

ReturnValue

Document object

See Also

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)
ParameterTypeDescription
filenameSystem::StringInput file to convert into pdf document.
optionsSystem::SharedPtr<LoadOptions>Represents properties for converting filename into pdf document.

ReturnValue

Document object

See Also

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)
ParameterTypeDescription
filenameSystem::StringDocument file name.
passwordSystem::StringUser or owner password.

ReturnValue

Document object

See Also

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)
ParameterTypeDescription
filenameSystem::StringDocument file name.
passwordSystem::StringUser or owner password.
isManagedStreamboolif set to true inner stream is closed before exit; otherwise, is not.

ReturnValue

Document object

See Also