Using a package of powerful File Format Automation APIs Aspose.Total for .NET you can easily Render TEX to OTP 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 OTP.
.NET API to Convert TEX to OTP
- 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 OTP format using
Save
method and set
Otp
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.Otp
presentation.Save("output.otp", SaveFormat.Otp);
Get XMP Metadata from TEX File via .NET
While converting TEX to OTP, 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 OTP 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 OTP file to Read-Only, which means users (after they open the presentation) see the Read-Only recommendation.
Presentation presentation = new Presentation("PptxOutput.pptx");
// make OTP read only
presentation.ProtectionManager.ReadOnlyRecommended = true;
// call save method while passing SaveFormat.Otp
presentation.Save("output.otp", SaveFormat.Otp);
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 OTP File Format
OpenDocument Standard Format (ODF) is an XML-based file format for representing electronic documents such as spreadsheets, charts, presentations and word processing documents. The format is standardized by the Organization for the Advancement of Structured Information Standards (OASIS) and was first adopted by ISO/IEC JTC1 SC34 in 2005. ODF is an open format, meaning that it is not restricted by any copyright or patent.ODF is based on the XML schema of the OpenOffice.org office suite and uses the Zip compression algorithm. It is designed to be platform-independent and to be able to support a wide range of applications. The OpenDocument Format specification defines three document types:* Text documents* Spreadsheets* PresentationsEach document type has a corresponding XML schema. The schemas are designed to be extended, allowing application-specific features to be added.ODF documents can be encrypted and signed using the XML Encryption and XML Signature standards. The OpenDocument Format is supported by a number of office applications, including Apache OpenOffice, LibreOffice, IBM Lotus Symphony and Microsoft Office.
Read More