FileFormat module

class FileFormat.FileFormat(value)

Bases: Enum

Represents possible Excel file formats and versions.

This enum defines the various file formats that can be used when working with Excel files, including different Excel versions and other export formats like PDF, HTML, etc.

Xlsb2007

Excel Binary Format for Excel 2007.

Xlsb2010

Excel Binary Format for Excel 2010.

ODS

OpenDocument Spreadsheet format.

CSV

Comma-Separated Values format.

XML

XML Spreadsheet format.

PDF

Portable Document Format.

Bitmap

Bitmap image format.

XPS

XML Paper Specification format.

HTML

HyperText Markup Language format.

Version97to2003

Excel 97-2003 format (.xls).

Version2007

Excel 2007 format (.xlsx).

Version2010

Excel 2010 format (.xlsx).

Version2013

Excel 2013 format (.xlsx).

Version2016

Excel 2016 format (.xlsx).

PostScript

PostScript document format.

OFD

Open Fixed-layout Document format.

PCL

Printer Command Language format.

Xlsm

Excel Macro-Enabled Workbook format.

ET

WPS Spreadsheet format.

ETT

WPS Spreadsheet Template format.

UOS

Unified Office Format Spreadsheet.

XLT

Excel Template format.

XLTX

Excel Template format (XML-based).

XLTM

Excel Macro-Enabled Template format.

Markdown

Markdown text format.

Bitmap = 6
CSV = 3
ET = 18
ETT = 19
HTML = 8
Markdown = 24
ODS = 2
OFD = 15
PCL = 16
PDF = 5
PostScript = 14
UOS = 20
Version2007 = 10
Version2010 = 11
Version2013 = 12
Version2016 = 13
Version97to2003 = 9
XLT = 21
XLTM = 23
XLTX = 22
XML = 4
XPS = 7
Xlsb2007 = 0
Xlsb2010 = 1
Xlsm = 17