Using a package of powerful File Format Automation APIs Aspose.Total for .NET you can easily Render TEX to POTX in two simple steps. By using PDF Processing API Aspose.PDF for .NET , you can transform TEX file format to PPTX. After that, by using Presentation Processing API Aspose.Slides for .NET , you can convert PPTX to POTX.
.NET API to Convert TEX to POTX
- Open TEX file using Document class
- Convert TEX to PPTX by using Save method
- Load PPTX file by using Presentation class
- Save the document to POTX format using
Save
method and set
Potx
as SaveFormat
Get Started with .NET File Format APIs
Install from command line as nuget install Aspose.Total
or via Package Manager Console of Visual Studio with Install-Package Aspose.Total
.
Alternatively, get the offline MSI installer or DLLs in a ZIP file from downloads .
Document document = new Document("input.tex");
// save TEX as a PPTX
document.Save("PptxOutput.pptx", SaveFormat.Pptx);
// load PPTX with an instance of Presentation
Presentation presentation = new Presentation("PptxOutput.pptx");
// call save method while passing SaveFormat.Potx
presentation.Save("output.potx", SaveFormat.Potx);
Get XMP Metadata from TEX File via .NET
While converting TEX to POTX, you might need extra XMP metadata information to prioritize your batch conversion process. For example you can get and sort your conversion documents based on creation date and process the documents accordingly. Aspose.PDF for .NET allows you to access a TEX file’s XMP metadata. To get a TEX file’s metadata, you can create a Document object and open the input TEX file. After that, you can get the file’s metadata using the Metadata property.
Document doc = new Document("input.tex");
// get TEX XMP properties
Console.WriteLine(doc.Metadata["xmp:CreateDate"]);
Console.WriteLine(doc.Metadata["xmp:Nickname"]);
Console.WriteLine(doc.Metadata["xmp:CustomProperty"]);
Create Read Only POTX File via .NET
By using Aspose.Slides for .NET API, you can further enhance the features of your conversion application. One of the feature can be to create your output file read only to increase security. The API allows you to set your POTX file to Read-Only, which means users (after they open the presentation) see the Read-Only recommendation.
Presentation presentation = new Presentation("PptxOutput.pptx");
// make POTX read only
presentation.ProtectionManager.ReadOnlyRecommended = true;
// call save method while passing SaveFormat.Potx
presentation.Save("output.potx", SaveFormat.Potx);
Explore TEX Conversion Options with .NET
What is TEX File Format
A TEX file is a plain text file that contains the source code of a LaTeX document. LaTeX is a typesetting system used to create professional-looking documents. It is most commonly used to create papers for academic journals and to typeset books.TEX files are saved in the same directory as the LaTeX document and have a .tex file extension. They can be opened and edited with any text editor, but are typically viewed and compiled using a LaTeX editor, such as TeXnicCenter or Texmaker. When a TEX file is compiled, it is converted into a PDF or DVI file, which can be viewed with a PDF viewer, such as Adobe Reader, or a DVI viewer, such as Yap.
Read MoreWhat is POTX File Format
A POTX file is a PowerPoint Open XML Template file. It is a ZIP compressed XML file used by Microsoft PowerPoint to store slide designs. The POTX file format is used to save slide masters and layouts.POTX files can be opened by Microsoft PowerPoint and other presentation software that supports the PowerPoint Open XML format. They can also be opened by text editors such as Microsoft Word and Notepad++.Microsoft PowerPoint templates are pre-designed slide layouts that you can use to create presentations. Templates can contain slide masters, layouts, theme colors, theme fonts, theme effects, background styles, and slide design elements. You can use templates to create both new presentations and to modify existing presentations. When you open a template, it is copied to your hard drive and opened as a new, untitled presentation. The template file is not changed. You can save the new presentation as either a PowerPoint presentation (PPTX) or a PowerPoint template (POTX).
Read More