Supported Document Formats

The following tables contain the file formats supported by GroupDocs.Assembly for Python via .NET. A template of any of these formats can be loaded and filled with data. The report is saved in the format of its file extension, or of the format named by LoadSaveOptions(FileFormat....); which report formats a template can be saved to depends on its family, as the last table shows.

Platform notes

The package runs the same engine on every platform, so the tables below hold on Windows, Linux and macOS, with these exceptions:

  • Presentations on Linux and macOS need libgdiplus. Without it no presentation template (PPT, PPTX, ODP and the others) can be filled: the call raises “The type initializer for ‘Gdip’ threw an exception”. Word processing, spreadsheet, email, HTML and text templates do not need it. See System Requirements.
  • On Linux, a presentation cannot be saved as TIFF (“Not implemented”); save it as PDF instead.
  • Text and HTML templates should start with a UTF-8 byte order mark. A text or HTML template without one, that holds only ASCII characters, is read as an ANSI document, and the report is written in the Windows-1252 code page on every platform: “Café” becomes a single byte that a UTF-8 reader cannot show. With the mark the report is UTF-8. The sample templates of this documentation have it.

Word Processing

Format Description Template Report
DOC Microsoft Word 97-2003 Document ✔ ✔
DOT Microsoft Word 97-2003 Template ✔ ✔
DOCX Office Open XML Document ✔ ✔
DOCM Office Open XML Document, macro-enabled ✔ ✔
DOTX Office Open XML Template ✔ ✔
DOTM Office Open XML Template, macro-enabled ✔ ✔
RTF Rich Text Format ✔ ✔
ODT OpenDocument Text ✔ ✔
OTT OpenDocument Text Template ✔ ✔
TXT Plain text ✔ ✔
MD Markdown ✔ ✔

Spreadsheet

Format Description Template Report
XLS Microsoft Excel 97-2003 Workbook ✔ ✔
XLT Microsoft Excel 97-2003 Template ✔ ✔
XLSX Office Open XML Workbook ✔ ✔
XLSM Office Open XML Workbook, macro-enabled ✔ ✔
XLTX Office Open XML Workbook Template ✔ ✔
XLTM Office Open XML Workbook Template, macro-enabled ✔ ✔
XLSB Excel Binary Workbook ✔ ✔
ODS OpenDocument Spreadsheet ✔ ✔

Presentation

Format Description Template Report
PPT Microsoft PowerPoint 97-2003 Presentation ✔ ✔
PPS Microsoft PowerPoint 97-2003 Slide Show ✔ ✔
POT Microsoft PowerPoint 97-2003 Template ✔ ✔
PPTX Office Open XML Presentation ✔ ✔
PPTM Office Open XML Presentation, macro-enabled ✔ ✔
PPSX Office Open XML Slide Show ✔ ✔
PPSM Office Open XML Slide Show, macro-enabled ✔ ✔
POTX Office Open XML Presentation Template ✔ ✔
POTM Office Open XML Presentation Template, macro-enabled ✔ ✔
ODP OpenDocument Presentation ✔ ✔
OTP OpenDocument Presentation Template ✔ ✔

Email

Format Description Template Report
MSG Microsoft Outlook Message ✔ ✔
EML E-mail Message (MIME) ✔ ✔
EMLX Apple Mail Message ✔ ✔

Web

Format Description Template Report
HTML HyperText Markup Language ✔ ✔
MHTML MIME HTML web archive ✔ ✔

Report-only formats

Format Description Template Report
PDF Portable Document Format ✔
XPS XML Paper Specification ✔
OXPS OpenXPS ✔
TIFF Tagged Image File Format ✔
SVG Scalable Vector Graphics ✔
PS PostScript ✔
PCL Printer Command Language ✔
XAML Extensible Application Markup Language ✔
EPUB Electronic Publication ✔

Report formats by template family

Each template family can be saved to the formats below. Saving to another format raises an error (“The document cannot be saved to the given format”).

Template family Report formats
Word processing (DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF, ODT, OTT, TXT, MD), HTML, MHTML Any word-processing format, HTML, MHTML, PDF, XPS, OXPS, TIFF, SVG, PS, PCL, XAML, EPUB
Spreadsheet (XLS, XLT, XLSX, XLSM, XLTX, XLTM, XLSB, ODS) Any spreadsheet format, HTML, MHTML, PDF, XPS, TIFF, PCL
Presentation (PPT, PPS, POT, PPTX, PPTM, PPSX, PPSM, POTX, POTM, ODP, OTP) Any presentation format, HTML, PDF, XPS, TIFF
Email (MSG, EML, EMLX) Any email format, MHTML, PDF, TIFF, SVG, PS, PCL, and from MSG or EMLX also HTML, XPS, OXPS, XAML, EPUB, Markdown, plain text and DOCX

An MHTML template can also be saved as an email message (MSG, EML). An EML template whose message has only a plain-text body loses that text when it is saved to HTML, Markdown, plain text, XPS, OXPS, XAML, EPUB or DOCX; save it as an email, MHTML or PDF instead. A Markdown template saved as MHTML loses its text too; save it as HTML instead.

Can’t find your file format? Please post a request on our Free Support Forum, and our team will assist you.