Aspose::Pdf::ComHelper::OpenStream method

ComHelper::OpenStream(System::SharedPtr<System::IO::Stream>) method

Initialize and return new Document instance from the input stream.

System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenStream(System::SharedPtr<System::IO::Stream> input)
ParameterTypeDescription
inputSystem::SharedPtr<System::IO::Stream>Stream with pdf document.

ReturnValue

Document object

See Also

ComHelper::OpenStream(System::SharedPtr<System::IO::Stream>, bool) method

Initialize and return new Document instance from the input stream.

System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenStream(System::SharedPtr<System::IO::Stream> input, bool isManagedStream)
ParameterTypeDescription
inputSystem::SharedPtr<System::IO::Stream>Stream with pdf document.
isManagedStreamboolif set to true inner stream is closed before exit; otherwise, is not.

ReturnValue

Document object

See Also

ComHelper::OpenStream(System::SharedPtr<System::IO::Stream>, System::SharedPtr<LoadOptions>) method

Open and return an existing document from a stream providing necessary converting to get pdf document.

System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenStream(System::SharedPtr<System::IO::Stream> input, System::SharedPtr<LoadOptions> options)
ParameterTypeDescription
inputSystem::SharedPtr<System::IO::Stream>Input stream to convert into pdf document.
optionsSystem::SharedPtr<LoadOptions>Represents properties for converting input into pdf document.

ReturnValue

Document object

See Also

ComHelper::OpenStream(System::SharedPtr<System::IO::Stream>, System::String) method

Initialize and return new Document instance from the input stream.

System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenStream(System::SharedPtr<System::IO::Stream> input, System::String password)
ParameterTypeDescription
inputSystem::SharedPtr<System::IO::Stream>Input stream object, corresponding pdf is password protected.
passwordSystem::StringUser or owner password.

ReturnValue

Document object

See Also

ComHelper::OpenStream(System::SharedPtr<System::IO::Stream>, System::String, bool) method

Initialize and return new Document instance from the input stream.

System::SharedPtr<Document> Aspose::Pdf::ComHelper::OpenStream(System::SharedPtr<System::IO::Stream> input, System::String password, bool isManagedStream)
ParameterTypeDescription
inputSystem::SharedPtr<System::IO::Stream>Stream with pdf document.
passwordSystem::StringUser or owner password.
isManagedStreamboolif set to true inner stream is closed before exit; otherwise, is not.

ReturnValue

Document object

See Also