Using a package of powerful File Format Automation APIs Aspose.Total for .NET you can easily Render TEX to ODP 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 ODP.
.NET API to Convert TEX to ODP
- 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 ODP format using
Save
method and set
Odp
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.Odp
presentation.Save("output.odp", SaveFormat.Odp);
Get XMP Metadata from TEX File via .NET
While converting TEX to ODP, 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 ODP 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 ODP file to Read-Only, which means users (after they open the presentation) see the Read-Only recommendation.
Presentation presentation = new Presentation("PptxOutput.pptx");
// make ODP read only
presentation.ProtectionManager.ReadOnlyRecommended = true;
// call save method while passing SaveFormat.Odp
presentation.Save("output.odp", SaveFormat.Odp);
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 ODP File Format
OpenDocument Presentation Format (ODP) is a file format for electronic presentations, created by the OpenDocument Format Alliance and standardized by the ISO/IEC 26300:2006 international standard. It is used for storing slide decks and is able to contain a wide range of content, including text, images, multimedia, charts, and other graphical elements.ODP files are based on the XML standard and use the .odp file extension. They can be opened and edited by a variety of software programs, including LibreOffice Impress, Apache OpenOffice Impress, and Microsoft PowerPoint.ODP files offer a number of advantages over other presentation formats, such as the ability to be edited by multiple users simultaneously and the ability to be easily converted to other formats.
Read More