ConvertMHTML

Contents
[ ]

ConvertMHTML(Stream, XpsSaveOptions, string)

Convert MHTML source presented by input stream. Result is xps file formed by output file path.

public static void ConvertMHTML(Stream stream, XpsSaveOptions options, string outputPath)
Parameter Type Description
stream Stream Input mhtml (.mht) data stream.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full xps file path as output conversion result.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, XpsSaveOptions, string)

Convert MHTML source presented by full file path to XPS. Result is xps file formed by output file path.

public static void ConvertMHTML(string sourcePath, XpsSaveOptions options, string outputPath)
Parameter Type Description
sourcePath String MHTML source full file path.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full xps file path as output conversion result.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
	// Form source file path
	var sourcePath = Path.Combine(InputFolder, "sample.mht");

	// Form result file path
	var resultPath = Path.Combine(OutputFolder, "result.xps");

	// Define default XpsSaveOptions object
	var options = new XpsSaveOptions();

	// Initiate conversion process
	Converter.ConvertMHTML(sourcePath, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, XpsSaveOptions, string)

Convert MHTML source presented by URL. Result is xps file formed by output file path.

public static void ConvertMHTML(Url sourceUrl, XpsSaveOptions options, string outputPath)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full xps file path as output conversion result.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
	// Form source file path
	var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

	// Form result file path
	var resultPath = Path.Combine(OutputFolder, "result.xps");

	// Define default XpsSaveOptions object
	var options = new XpsSaveOptions();

	// Initiate conversion process
	Converter.ConvertMHTML(sourceUrl, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, Configuration, XpsSaveOptions, string)

Convert MHTML source presented by input stream. Result is xps file formed by output file path.

public static void ConvertMHTML(Stream stream, Configuration configuration, XpsSaveOptions options, 
    string outputPath)
Parameter Type Description
stream Stream Conversion source mhtml (.mht) data stream.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full xps file path as output conversion result.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(File.OpenRead(sourcePath), new Configuration(), options, resultPath);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, Configuration, XpsSaveOptions, string)

Convert MHTML source presented by full file path to XPS. Result is xps file formed by output file path.

public static void ConvertMHTML(string sourcePath, Configuration configuration, 
    XpsSaveOptions options, string outputPath)
Parameter Type Description
sourcePath String MHTML source full file path.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full xps file path as output conversion result.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourcePath, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, Configuration, XpsSaveOptions, string)

Convert MHTML source presented by URL. Result is xps file formed by output file path.

public static void ConvertMHTML(Url sourceUrl, Configuration configuration, XpsSaveOptions options, 
    string outputPath)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full xps file path as output conversion result.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.xps");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourceUrl, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, XpsSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by input stream. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Stream stream, XpsSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
stream Stream Conversion source mhtml (.mht) data stream.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), options, sp);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, XpsSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by full file path to XPS. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(string sourcePath, XpsSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourcePath String MHTML source full file path.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Known (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertMHTML(sourcePath, options, sp);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, XpsSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Url sourceUrl, XpsSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO; 
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertMHTML(sourceUrl, options, sp);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, Configuration, XpsSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by input stream. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Stream stream, Configuration configuration, XpsSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
stream Stream Conversion source mhtml (.mht) data stream.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO;
using Aspose.Html.IO;  
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), new Configuration(), options, sp);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, Configuration, XpsSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by full file path to XPS. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(string sourcePath, Configuration configuration, 
    XpsSaveOptions options, ICreateStreamProvider provider)
Parameter Type Description
sourcePath String MHTML source full file path.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Known (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourcePath, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, Configuration, XpsSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Url sourceUrl, Configuration configuration, XpsSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options XpsSaveOptions XpsSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Known (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

MHTML Converter

MHTML to XPS conversion is often required to take advantage of XPS format for specific tasks. An XPS file represents page layout files that are based on XML Paper Specifications, created by Microsoft.

Refer to article where you find information on how to convert MHTML to XPS using ConvertHTML() methods of the Converter class and how to apply XpsSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to XPS

Converter class offers few MHTML specific conversions to XPS. To convert MHTML to XPS, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new XpsSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an XPS result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to XPS Converter that converts MHTML to XPS with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default XpsSaveOptions object
      var options = new XpsSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourceUrl, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, DocSaveOptions, string)

Convert MHTML source presented by input stream. Result is docx file formed by output file path.

public static void ConvertMHTML(Stream stream, DocSaveOptions options, string outputPath)
Parameter Type Description
stream Stream MHTML conversion input data stream.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full docx file path as output conversion result.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), options, resultPath);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, DocSaveOptions, string)

Convert MHTML source presented by full file path to DOCX. Result is docx file formed by output file path.

public static void ConvertMHTML(string sourcePath, DocSaveOptions options, string outputPath)
Parameter Type Description
sourcePath String MHTML source file path. It will be combined with the current directory path to form an absolute URL.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full docx file path as output conversion result.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(sourcePath, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, DocSaveOptions, string)

Convert MHTML source presented by URL. Result is docx file formed by output file path.

public static void ConvertMHTML(Url sourceUrl, DocSaveOptions options, string outputPath)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full docx file path as output conversion result.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(sourceUrl, options, resultPath);





*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, Configuration, DocSaveOptions, string)

Convert MHTML source presented by input stream. Result is docx file formed by output file path.

public static void ConvertMHTML(Stream stream, Configuration configuration, DocSaveOptions options, 
    string outputPath)
Parameter Type Description
stream Stream MHTML conversion input data stream.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full docx file path as output conversion result.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, Configuration, DocSaveOptions, string)

Convert MHTML source presented by full file path to DOCX. Result is docx file formed by output file path.

public static void ConvertMHTML(string sourcePath, Configuration configuration, 
    DocSaveOptions options, string outputPath)
Parameter Type Description
sourcePath String MHTML source full file path.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full docx file path as output conversion result.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
... 
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourcePath, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, Configuration, DocSaveOptions, string)

Convert MHTML source presented by URL. Result is docx file formed by output file path.

public static void ConvertMHTML(Url sourceUrl, Configuration configuration, DocSaveOptions options, 
    string outputPath)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full docx file path as output conversion result.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.docx");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourceUrl, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, DocSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by input stream. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Stream stream, DocSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
stream Stream MHTML conversion input data stream.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, DocSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by full file path to DOCX. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(string sourcePath, DocSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourcePath String MHTML source full file path.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertMHTML(sourcePath, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, DocSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Url sourceUrl, DocSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Known (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertMHTML(sourceUrl, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, Configuration, DocSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by input stream. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Stream stream, Configuration configuration, DocSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
stream Stream MHTML conversion input data stream.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Known (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, Configuration, DocSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by full file path to DOCX. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(string sourcePath, Configuration configuration, 
    DocSaveOptions options, ICreateStreamProvider provider)
Parameter Type Description
sourcePath String MHTML source full file path.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourcePath, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, Configuration, DocSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Url sourceUrl, Configuration configuration, DocSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options DocSaveOptions DocSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to DOCX conversion is often required to take advantage of DOCX format for specific tasks. DOCX is a well-known format for Microsoft Word documents. It can contain a wide range of data, including text, tables, raster and vector graphics, video, sounds and diagrams. This format is popular because it supports complex formatting features and offers to users a variety of options to write any type of document.

Refer to article where you find information on how to convert MHTML to DOCX using ConvertMHTML() methods of the Converter class and how to apply DocSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to DOCX

Converter class offers few MHTML specific conversions to DOCX. To convert MHTML to DOCX, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as conversion source. Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer. Create a new DocSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an DOCX result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to DOCX Converter that converts MHTML to DOCX with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default DocSaveOptions object
      var options = new DocSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourceUrl, new Configuration(), options, sp);

*InputFolder - user source folder path.

*OutputFolder - user output folder path.

See Also


ConvertMHTML(Stream, PdfSaveOptions, string)

Convert MHTML source presented by input stream. Result is pdf file formed by output file path.

public static void ConvertMHTML(Stream stream, PdfSaveOptions options, string outputPath)
Parameter Type Description
stream Stream MHTML conversion input data stream.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full pdf file path as output conversion result.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, PdfSaveOptions, string)

Convert MHTML source presented by full file path to PDF. Result is pdf file formed by output file path.

public static void ConvertMHTML(string sourcePath, PdfSaveOptions options, string outputPath)
Parameter Type Description
sourcePath String MHTML source full file path.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full pdf file path as output conversion result.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(sourcePath, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, PdfSaveOptions, string)

Convert MHTML source presented by URL. Result is pdf file formed by output file path.

public static void ConvertMHTML(Url sourceUrl, PdfSaveOptions options, string outputPath)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full pdf file path as output conversion result.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(sourceUrl, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, Configuration, PdfSaveOptions, string)

Convert MHTML source presented by input stream. Result is pdf file formed by output file path.

public static void ConvertMHTML(Stream stream, Configuration configuration, PdfSaveOptions options, 
    string outputPath)
Parameter Type Description
stream Stream MHTML conversion input data stream.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full pdf file path as output conversion result.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, Configuration, PdfSaveOptions, string)

Convert MHTML source presented by full file path to PDF. Result is pdf file formed by output file path.

public static void ConvertMHTML(string sourcePath, Configuration configuration, 
    PdfSaveOptions options, string outputPath)
Parameter Type Description
sourcePath String MHTML source file path. It will be combined with the current directory path to form an absolute URL.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full pdf file path as output conversion result.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourcePath, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, Configuration, PdfSaveOptions, string)

Convert MHTML source presented by URL. Result is pdf file formed by output file path.

public static void ConvertMHTML(Url sourceUrl, Configuration configuration, PdfSaveOptions options, 
    string outputPath)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
outputPath String Full pdf file path as output conversion result.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.pdf");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourceUrl, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, PdfSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by input stream. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Stream stream, PdfSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
stream Stream MHTML conversion input data stream.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Known (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, PdfSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by full file path to PDF. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(string sourcePath, PdfSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourcePath String MHTML source file path. It will be combined with the current directory path to form an absolute URL.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertMHTML(sourcePath, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, PdfSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Url sourceUrl, PdfSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertMHTML(sourceUrl, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, Configuration, PdfSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by input stream. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Stream stream, Configuration configuration, PdfSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
stream Stream MHTML conversion input data stream.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, Configuration, PdfSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by full file path to PDF. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(string sourcePath, Configuration configuration, 
    PdfSaveOptions options, ICreateStreamProvider provider)
Parameter Type Description
sourcePath String MHTML source full file path.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourcePath, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, Configuration, PdfSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Url sourceUrl, Configuration configuration, PdfSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options PdfSaveOptions PdfSaveOptions object usage enables you to tune the rendering process. For more info see Aspose Documentation.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

MHTML to PDF conversion is often required to take advantage of PDF format for specific tasks. PDF comes with many benefits that other files don’t have. For example, many programs and apps support PDF documents; PDF files are optimized for printing, and they are ideal for creating physical copies of your documents; you can configure the security settings for PDF files - disable printing, editing, using an electronic signature, etc.

Refer to article, where you find information on how to convert MHTML to PDF using ConvertMHTML() methods of the Converter class and how to apply PdfSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to PDF

Converter class offers few MHTML specific conversions to PDF. To convert MHTML to PDF, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new PdfSaveOptions object with specific or default settings. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an PDF result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to PDF Converter that converts MHTML to PDF with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default PdfSaveOptions object
      var options = new PdfSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourceUrl, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, ImageSaveOptions, string)

Convert MHTML source presented by input stream to image. Result is image file formed by output file path.

public static void ConvertMHTML(Stream stream, ImageSaveOptions options, string outputPath)
Parameter Type Description
stream Stream MHTML conversion input data stream.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPath String Full image file path as output conversion result.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source. Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer. Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.jpg");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Jpeg);

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, ImageSaveOptions, string)

Convert MHTML source presented by full file path. Result is image file formed by output file path.

public static void ConvertMHTML(string sourcePath, ImageSaveOptions options, string outputPath)
Parameter Type Description
sourcePath String MHTML source full file path.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPath String Full image file path as output conversion result.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.jpg");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Jpeg);

      // Initiate conversion process
      Converter.ConvertMHTML(sourcePath, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, ImageSaveOptions, string)

Convert MHTML source presented by URL. Result is image file formed by output file path.

public static void ConvertMHTML(Url sourceUrl, ImageSaveOptions options, string outputPath)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPath String Full image file path as output conversion result.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.jpg");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Jpeg);

      // Initiate conversion process
      Converter.ConvertMHTML(sourceUrl, options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, Configuration, ImageSaveOptions, string)

Convert MHTML source presented by input stream to image. Result is image file formed by output file path.

public static void ConvertMHTML(Stream stream, Configuration configuration, 
    ImageSaveOptions options, string outputPath)
Parameter Type Description
stream Stream MHTML conversion input data stream.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPath String Full image file path as output conversion result.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.png");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, Configuration, ImageSaveOptions, string)

Convert MHTML source presented by full file path. Result is image file formed by output file path.

public static void ConvertMHTML(string sourcePath, Configuration configuration, 
    ImageSaveOptions options, string outputPath)
Parameter Type Description
sourcePath String MHTML source full file path.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPath String Full image file path as output conversion result.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.png");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourcePath, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, Configuration, ImageSaveOptions, string)

Convert MHTML source presented by URL. Result is image file formed by output file path.

public static void ConvertMHTML(Url sourceUrl, Configuration configuration, 
    ImageSaveOptions options, string outputPath)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
outputPath String Full image file path as output conversion result.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result.png");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourceUrl, new Configuration(), options, resultPath);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, ImageSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by input stream. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Stream stream, ImageSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
stream Stream MHTML conversion input data stream.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, ImageSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by full file path to image. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(string sourcePath, ImageSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourcePath String MHTML source full file path.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
provider ICreateStreamProvider Known (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertMHTML(sourcePath, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, ImageSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Url sourceUrl, ImageSaveOptions options, 
    ICreateStreamProvider provider)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
provider ICreateStreamProvider Known (see FileCreateStreamProvider) or custom ICreateStreamProvider interface implementation.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Tiff);

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process
      Converter.ConvertMHTML(sourceUrl, options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Stream, Configuration, ImageSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by input stream. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Stream stream, Configuration configuration, 
    ImageSaveOptions options, ICreateStreamProvider provider)
Parameter Type Description
stream Stream MHTML conversion input data stream.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Initiate conversion process
      Converter.ConvertMHTML(System.IO.File.OpenRead(sourcePath), new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(string, Configuration, ImageSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by full file path to image. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(string sourcePath, Configuration configuration, 
    ImageSaveOptions options, ICreateStreamProvider provider)
Parameter Type Description
sourcePath String MHTML source full file path.
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Form source file path
      var sourcePath = Path.Combine(InputFolder, "sample.mht");

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions();

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourcePath, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also


ConvertMHTML(Url, Configuration, ImageSaveOptions, ICreateStreamProvider)

Convert MHTML source presented by URL. Result is output data formed by ICreateStreamProvider interface implementation.

public static void ConvertMHTML(Url sourceUrl, Configuration configuration, 
    ImageSaveOptions options, ICreateStreamProvider provider)
Parameter Type Description
sourceUrl Url MHTML source document URL - provides an object representation of a universal identifier (URL).
configuration Configuration The environment configuration. Represents the configuration context object that is used to set up the environment settings for the application.
options ImageSaveOptions ImageSaveOptions object usage enables you to tune the rendering process. You can specify the page size, margins, CSS media-type, etc.
provider ICreateStreamProvider Implementation of the interface, which will be used to get an output stream.

Remarks

MHTML Converter

Files with MHTML extension represent a web page archive format that a number of different applications can create. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. The actual specifications of the format are as detailed by RFC 2557.

Refer to article, where you find information on how to convert MHTML to images in different formats using ConvertMHTML() methods of the Converter class and how to apply ImageSaveOptions and ICreateStreamProvider parameters.

Convert MHTML to Image

Converter class offers few MHTML specific conversions to images. Supported formats are JPEG, PNG, BMP, GIF and TIFF. To convert MHTML to image, you should follow one of simple scenarios consists of few steps:

Conversion source. Detect an existing local MHTML (.mht) file or remote Url as conversion source. You can also use standard or custom specific stream as source.Conversion result. Define result output file path or use known or custom ICreateStreamProvider interface implementation as output data buffer.Create a new ImageSaveOptions object with specific or default settings. Default image format is PNG. You can add also configuration as option parameter.Use the ConvertMHTML() method of the Converter class to save MHTML as an image result with three or more parameters depend on user scenario.Online MHTML converter

Aspose.HTML offers a free online MHTML to JPEG Converter that converts MHTML to jpeg file with high quality, easy and fast. Just upload, convert your files and get results in a few seconds!

Source code

You can download the complete examples and data files from GitHub.

Examples

using System.IO; 
using Aspose.Html.IO;
using Aspose.Html.Saving;  
using Aspose.Html.Converters;  
...
      // Create Url based on input file path
      var sourceUrl = new Url(Path.Combine(InputFolder, "sample.mht"));

      // Form result file path
      var resultPath = Path.Combine(OutputFolder, "result");

      // Define default ImageSaveOptions object
      var options = new ImageSaveOptions(ImageFormat.Bmp);

      // Use one of ICreateStreamProvider implementation
      ICreateStreamProvider sp = new FileCreateStreamProvider(resultPath);

      // Initiate conversion process with default configuration
      Converter.ConvertMHTML(sourceUrl, new Configuration(), options, sp);

*InputFolder - user source file path.

*OutputFolder - user output file path.

See Also