Aspose::Pdf::Devices::DocumentDevice::Process method

DocumentDevice::Process(const System::SharedPtr<Aspose::Pdf::Document>&, const System::SharedPtr<System::IO::Stream>&) method

Processes the whole document and saves results into stream.

void Aspose::Pdf::Devices::DocumentDevice::Process(const System::SharedPtr<Aspose::Pdf::Document> &document, const System::SharedPtr<System::IO::Stream> &output)
ParameterTypeDescription
documentconst System::SharedPtr<Aspose::Pdf::Document>&The document to process.
outputconst System::SharedPtr<System::IO::Stream>&Defines stream where the results of processing are stored.

See Also

DocumentDevice::Process(const System::SharedPtr<Aspose::Pdf::Document>&, const System::String&) method

Processes the whole document and saves results into file.

void Aspose::Pdf::Devices::DocumentDevice::Process(const System::SharedPtr<Aspose::Pdf::Document> &document, const System::String &outputFileName)
ParameterTypeDescription
documentconst System::SharedPtr<Aspose::Pdf::Document>&The document to process.
outputFileNameconst System::String&Defines file where the results of processing are stored.

See Also

DocumentDevice::Process(const System::SharedPtr<Aspose::Pdf::Document>&, int32_t, int32_t, const System::String&) method

Processes certain pages of the document and saves results into file.

void Aspose::Pdf::Devices::DocumentDevice::Process(const System::SharedPtr<Aspose::Pdf::Document> &document, int32_t fromPage, int32_t toPage, const System::String &outputFileName)
ParameterTypeDescription
documentconst System::SharedPtr<Aspose::Pdf::Document>&The document to process.
fromPageint32_tThe first page to start processing.
toPageint32_tThe last page of processing.
outputFileNameconst System::String&Defines file where the results of processing are stored.

See Also

DocumentDevice::Process(System::SharedPtr<Aspose::Pdf::Document>, int32_t, int32_t, System::SharedPtr<System::IO::Stream>) method

Each device represents some operation on the document, e.g. we can convert pdf document into another format.

virtual void Aspose::Pdf::Devices::DocumentDevice::Process(System::SharedPtr<Aspose::Pdf::Document> document, int32_t fromPage, int32_t toPage, System::SharedPtr<System::IO::Stream> output)=0
ParameterTypeDescription
documentSystem::SharedPtr<Aspose::Pdf::Document>The document to process.
fromPageint32_tDefines the page from which to start processing.
toPageint32_tDefines the last page to process.
outputSystem::SharedPtr<System::IO::Stream>Defines stream where the results of processing are stored.

See Also