Aspose::Words::LowCode::Converter class

Converter class

Represents a group of methods intended to convert a variety of different types of documents using a single line of code.

class Converter : public Aspose::Words::LowCode::Processor

Methods

MethodDescription
static Convert(const System::String&, const System::String&)Converts the given input document into the output document using specified input output file names and its extensions.
static Convert(const System::String&, const System::String&, Aspose::Words::SaveFormat)Converts the given input document into the output document using specified input output file names and the final document format.
static Convert(const System::String&, const System::String&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&)Converts the given input document into the output document using specified input output file names and save options.
static Convert(const System::String&, const System::SharedPtr<Aspose::Words::Loading::LoadOptions>&, const System::String&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&)Converts the given input document into the output document using specified input output file names its load/save options.
static Convert(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat)Converts the given input document into a single output document using specified input and output streams.
static Convert(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&)Converts the given input document into a single output document using specified input and output streams.
static Convert(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Loading::LoadOptions>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&)Converts the given input document into a single output document using specified input and output streams.
static ConvertToImages(const System::String&, const System::String&)Converts the pages of the specified input file to image files.
static ConvertToImages(const System::String&, const System::String&, Aspose::Words::SaveFormat)Converts the pages of the specified input file to image files in the specified format.
static ConvertToImages(const System::String&, const System::String&, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>&)Converts the pages of the specified input file to image files using the specified save options.
static ConvertToImages(const System::String&, const System::SharedPtr<Aspose::Words::Loading::LoadOptions>&, const System::String&, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>&)Converts the pages of the specified input file to image files using the provided load and save options.
static ConvertToImages(const System::String&, Aspose::Words::SaveFormat)Converts the pages of the specified input file to images in the specified format and returns an array of streams containing the images.
static ConvertToImages(const System::String&, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>&)Converts the pages of the specified input file to images using the specified save options and returns an array of streams containing the images.
static ConvertToImages(const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat)Converts the pages of the specified input stream to images in the specified format and returns an array of streams containing the images.
static ConvertToImages(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>&)Converts the pages of the specified input stream to images using the specified save options and returns an array of streams containing the images.
static ConvertToImages(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Loading::LoadOptions>&, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>&)Converts the pages of the specified input stream to images using the provided load and save options, and returns an array of streams containing the images.
static ConvertToImages(const System::SharedPtr<Aspose::Words::Document>&, Aspose::Words::SaveFormat)Converts the pages of the specified document to images in the specified format and returns an array of streams containing the images.
static ConvertToImages(const System::SharedPtr<Aspose::Words::Document>&, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions>&)Converts the pages of the specified document to images using the specified save options and returns an array of streams containing the images.
static Create()Creates new instance of the converter processor.
static Create(const System::SharedPtr<Aspose::Words::LowCode::ConverterContext>&)Creates new instance of the converter processor.
Execute()Execute the processor action.
From(const System::String&, const System::SharedPtr<Aspose::Words::Loading::LoadOptions>&)Specifies input document for processing.
From(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Loading::LoadOptions>&)Specifies input document for processing.
GetType() const override
Is(const System::TypeInfo&) const override
To(const System::String&, System::SharedPtr<Aspose::Words::Saving::SaveOptions>)Specifies output file for the processor.
To(const System::String&, Aspose::Words::SaveFormat)Specifies output file for the processor.
To(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&)Specifies output stream for the processor.
To(const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat)Specifies output stream for the processor.
To(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::IO::Stream>>>&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&)
To(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::IO::Stream>>>&, Aspose::Words::SaveFormat)
static Type()

Remarks

The specified input and output files or streams, along with the desired save format, are used to convert the given input document of the one format into the output document of the other specified format.

The convert functionality supports over 35+ different file formats.

The ConvertToImages() group of methods are designed to transform documents into images, with each page being converted into a separate image file. These methods also convert PDF documents directly to fixed-page formats without loading them into the document model, which enhances both performance and accuracy.

With PageSet, you can specify a particular set of pages to convert into images.

See Also