Using a package of powerful File Format Automation APIs Aspose.Total for .NET you can easily Render TEX to PPS 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 PPS.
.NET API to Convert TEX to PPS
- 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 PPS format using
Save
method and set
Pps
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.Pps
presentation.Save("output.pps", SaveFormat.Pps);
Get XMP Metadata from TEX File via .NET
While converting TEX to PPS, 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 PPS 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 PPS file to Read-Only, which means users (after they open the presentation) see the Read-Only recommendation.
Presentation presentation = new Presentation("PptxOutput.pptx");
// make PPS read only
presentation.ProtectionManager.ReadOnlyRecommended = true;
// call save method while passing SaveFormat.Pps
presentation.Save("output.pps", SaveFormat.Pps);
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 PPS File Format
PPS is a file format for storing PowerPoint presentations. PPS files are similar to PPT files, but they can only be opened in PowerPoint, not in other presentation programs. PPS files are typically created by exporting a PowerPoint presentation to the PPS format.
Read More