Render XSLFO to POTX via .NET

.NET API to Export XSLFO to POTX on Windows, macOS, and Linux without using Microsoft® PowerPoint

 

Using a package of powerful File Format Automation APIs Aspose.Total for .NET you can easily Render XSLFO to POTX in two simple steps. By using PDF Processing API Aspose.PDF for .NET , you can transform XSLFO 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 XSLFO to POTX

  1. Open XSLFO file using Document class
  2. Convert XSLFO to PPTX by using Save method
  3. Load PPTX file by using Presentation class
  4. 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.xslfo");
// save XSLFO 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 XSLFO File via .NET

While converting XSLFO 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 XSLFO file’s XMP metadata. To get a XSLFO file’s metadata, you can create a Document object and open the input XSLFO file. After that, you can get the file’s metadata using the Metadata property.

Document doc = new Document("input.xslfo");
// get XSLFO 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);     

Other Conversion Options

XSLFO TO POTM (Microsoft PowerPoint Template File)
XSLFO TO PPTM (Macro-enabled Presentation File)
XSLFO TO ODP (OpenDocument Presentation Format)
XSLFO TO OTP (OpenDocument Standard Format)
XSLFO TO PPT (Microsoft PowerPoint 97-2003)
XSLFO TO PPSX (PowerPoint Slide Show)
XSLFO TO SWF (Shockwave Flash Movie)
XSLFO TO PPSM (Macro-enabled Slide Show)
XSLFO TO PPS (PowerPoint Slide Show)
XSLFO TO POT (Microsoft PowerPoint Template Files)
XSLFO TO XAML (XAML File)

XSLFO What is XSLFO File Format?

XSL-FO (XSL Formatting Objects) is a powerful stylesheet language for formatting XML documents. The semantics of the bounded form of paper and print is expressed by XSL-FO when the dimensions are fixed. In contrast to HTML, which represents the semantics of the unbounded form of a browser window with variable dimensions. The XML documents formatted by XSL-FO are mostly used to generate PDF files. XSL (Extensible Stylesheet Language) is a set of feature-complete W3C technologies intended to design for formatting and exchanging XML documents and XSL-FO part of this language. XSLT and XPath are also other parts of XSL.

Read More

POTX What is POTX File Format?

Files with .POTX extension represent Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above. This format was created to replace the POT file format that is based on the binary file format and is supported with PowerPoint 97-2003. The files generated can be used to create presentations that have same layout and other settings required to be applied to new files. These settings can include styles, backgrounds, colour palette, fonts and defaults. Such files are generated in order to create ready-to-use template files for official use.

Read More