Convert ODS to XPS via Python
Export Excel spreadsheets to XPS format using Python APIs.
How to Convert ODS to XPS Using Python
In order to convert ODS to XPS, we will use
API which is a feature-rich, powerful and easy to use document manipulation and conversion API for Python platform.
Steps to Convert ODS to XPS via Python
Python developers can easily load & convert ODS files to XPS in just a few lines of code.
- Load ODS file with an instance of Workbook
- Call the Workbook.Save method
- Pass output path with XPS extension as parameter
- Check specified path for resultant XPS file
import aspose.cells
from aspose.cells import Workbook
workbook = Workbook("Input.xlsx")
workbook.save("Output.pdf")
ODS What is ODS File Format
Files with .ods extension stand for OpenDocument Spreadsheet Document format that are editable by user. Data is stored inside ODF file into rows and columns. It is XML-based format and is one of the several subtypes in the Open Document Formats (ODF) family. The format is specified as part of the ODF 1.2 specifications published and maintained by OASIS. A number of applications on Windows as well as other operating systems can open ODS files for editing and manipulation including Microsoft Excel, NeoOffice and LibreOffice. ODS files can also be converted into other spreadsheet formats as well like XLS, XLSX and others by different applications.
Read MoreXPS What is XPS File Format
An XPS file represents page layout files that are based on XML Paper Specifications created by Microsoft. It was developed as a replacement of EMF file format and is similar to PDF file format, but uses XML in layout, appearance, and printing information of a document. It is, in fact, more justified to say that XPS is an attempt on PDF, but could not get enough popularity as owned by PDF for many reasons. Microsoft provides XPS Document Writer by default from Windows 7 onwards for the creation of XPS files. XPS files can be generated by selecting the "Microsoft XPS Document Writer" as printer while printing the document.
Read MoreOther Supported Conversions
You can also convert ODS into many other file formats including few listed below.