By using Aspose.Total for .NET you can convert PPTX file to MHTML within any .NET, C#, ASP.NET and VB.NET application in two simple steps. Firstly, by using Aspose.Slides for .NET , you can export PPTX to HTML. After that, by using Aspose.Cells for .NET Spreadsheet Programming API, you can convert HTML to MHTML.
How to Convert PPTX to MHTML via C# or Online App
- Open PPTX file using Presentation class
- Export PPTX as HTML by using Save method
- Load HTML document by using Workbook class
- Save the document to MHTML using Save method
PPTX File Conversion in C#
For PPTX file to MHTML Conversion in C#, please install the API from the command line as nuget install Aspose.Total
or via Package Manager Console of Visual Studio.
Alternatively, get the offline MSI installer or DLLs in a ZIP file from downloads .
Free Online Converter for PPTX to MHTML
Convert Protected PPTX to MHTML via C#
While converting PPTX file to MHTML, if your input PPTX document is password protected you cannot convert it to MHTML without decrypting the document. When your document is password protected, it means it enforces certain restrictions on the presentation. To remove the restrictions, the password has to be entered. A password-protected presentation is considered a locked presentation. The API allows you to open the encrypted document by passing the correct password in a LoadOptions object.
Convert PPTX to MHTML with Watermark via C#
While converting PPTX file to MHTML, you can also add watermark to your output MHTML file format. In order to add a watermark, you can create a new Workbook object and open the converted HTML document, select Worksheet via its index, create a Shape and use its AddTextEffect function. After that you can save your HTML document as MHTML with Watermark.
Explore PPTX Conversion Options with .NET
What is PPTX File Format
Open XML Presentation (PPTX) is a file format for storing presentations in XML format, developed by Microsoft. PPTX is a zipped, XML-based file format used for storing slide presentations. It is a successor to the PPT format and is used by Microsoft PowerPoint 2007 and later versions. The PPTX file format is based on the XML schema and uses a ZIP compression algorithm. PPTX files are stored in a folder structure, which contains a document.xml file, a slide master file, and a number of slide files. The document.xml file stores the content of the presentation, while the slide master file stores the layout and design of the slides. The slide files store the individual slides in the presentation.PPTX files can be opened in PowerPoint 2007 and later versions, as well as in some other presentation software.
Read MoreWhat is MHTML File Format
MHTML, short for MIME HTML, is a web page archive format used to combine resources that are typically represented by external links (such as images, Flash animations, Java applets, and audio files) with HTML code into a single file. The resulting file can be saved and opened by web browsers.MHTML is supported by most major web browsers, including Microsoft Edge, Internet Explorer, Google Chrome, Mozilla Firefox, and Opera. Safari has limited support for MHTML. When a web page is saved as an MHTML file, the HTML code and the resources are typically encoded using the MIME type multipart/related. This type of encoding is necessary in order to maintain the correct sequence of the HTML code and the resources when they are combined into a single file. The MHTML format is often used for archiving web pages or for distributing web pages that need to be viewed offline.
Read More