Aspose::Pdf::DocumentFactory::CreateDocument method

DocumentFactory::CreateDocument() method

Create empty document.

System::SharedPtr<Document> Aspose::Pdf::DocumentFactory::CreateDocument()

ReturnValue

Created document.

See Also

DocumentFactory::CreateDocument(const System::SharedPtr<System::IO::Stream>&) method

Load document from a stream.

System::SharedPtr<Document> Aspose::Pdf::DocumentFactory::CreateDocument(const System::SharedPtr<System::IO::Stream> &input)
ParameterTypeDescription
inputconst System::SharedPtr<System::IO::Stream>&Input stream.

ReturnValue

Created document.

See Also

DocumentFactory::CreateDocument(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<LoadOptions>&) method

Create document.

System::SharedPtr<Document> Aspose::Pdf::DocumentFactory::CreateDocument(const System::SharedPtr<System::IO::Stream> &input, const System::SharedPtr<LoadOptions> &options)
ParameterTypeDescription
inputconst System::SharedPtr<System::IO::Stream>&Input stream.
optionsconst System::SharedPtr<LoadOptions>&Document load options.

ReturnValue

Created document.

See Also

DocumentFactory::CreateDocument(const System::SharedPtr<System::IO::Stream>&, const System::String&) method

Load password protected document from a stream.

System::SharedPtr<Document> Aspose::Pdf::DocumentFactory::CreateDocument(const System::SharedPtr<System::IO::Stream> &input, const System::String &password)
ParameterTypeDescription
inputconst System::SharedPtr<System::IO::Stream>&Source stream.
passwordconst System::String&Passowrd for access to document.

ReturnValue

Created document.

See Also

DocumentFactory::CreateDocument(const System::String&) method

Load document from a file.

System::SharedPtr<Document> Aspose::Pdf::DocumentFactory::CreateDocument(const System::String &fileName)
ParameterTypeDescription
fileNameconst System::String&Name of PDF file.

ReturnValue

Created document.

See Also