Spire.Doc for Python

Professional Python API for Processing Word Documents

  • Overview
  • Features

Professional Python API
for Processing Word Documents

Over 1,000,000 Developers Are Already Using Our Libraries
To Create Their Amazing Applications.

Spire.Doc for Python is a professional Word Python API specifically designed for developers to create, read, write, convert and compare Word documents with fast and high-quality performance.


As an independent Word Python API, Spire.Doc for Python doesn't need Microsoft Word to be installed on neither the development nor target systems. However, it can incorporate Microsoft Word document creation capabilities into any developers' Python applications.


Spire.Doc for Python is a proven reliable MS Word API for Python which enables to perform many Word document processing tasks. Spire.Doc for Python supports Word 97-2003 /2007/2010/2013/2016/2019 and it has the ability to convert them to commonly used file formats like XML, RTF, TXT, EMF, HTML, TIFF, ODT, Markdown and vice versa. Furthermore, it supports to convert Word Doc/Docx to PDF, images (SVG, PNG, JPEG), PostScript, OFD, XPS, EPUB, PCL (Printer Command Language) and convert RTF to PDF/HTML, convert HTML to PDF/Image, convert Markdown to PDF in high quality.

  • Convert

  • Compare

  • Extract

  • eSign

  • Watermark

  • Replace

  • Mail Merge

  • Highlight

  • Header

  • Form

Convert Word to PDF

PDF files are preferred over Word documents because they are safe, simple to open, and easy to manage on any device. PDF is the most popular file format that users would convert Word to.

Compare Documents

If you receive two nearly-identical Word documents, the ideal way to determine whether there are any differences between them is to compare the two documents.

Extract Text and Images

When you just need to get the information in a Word document regardless of its format and structure, you can simply extract the text and images from the document.

Digitally Sign Documents

A digital signature provides assurances about the validity and authenticity of your Word documents. Once a Word document is digitally signed, any changes to the document will invalidate the signature.

Add a Watermark

A watermark is used to declare confidentiality, copyright, or other attributes of the document, or as a decoration to make the document more attractive. You can add either text or image watermarks to Word documents.

Replace Text

The ability to replace existing text (or placeholders) in a Word document makes it possible for programmers to quickly generate Word reports or documents based on a template.

Mail Merge

Mail Merge is a handy feature that allows you to quickly produce multiple documents, such as letters or emails, using information stored in a list, spreadsheet or database.

Find and Highlight

If you want to emphasize some words, you can find and highlight them in a bright color so that the readers could catch them easily.

Headers and Footers

Headers and footers are useful for including information that you want to appear on every page of a document, such as company logo or page number.

Create a Form

Form fields make it easier to collect information. Users can enter information by choosing an item from a drop-down list, inserting text in a combo box, or checking a check box.

PYTHON

Standalone Python API

100% independent Python Word class library
Doesn't require Microsoft Office installed on system.

VERSION

  • Word 97-03
  • Word 2007
  • Word 2010
  • Word 2013
  • Word 2016
  • Word 2019

OPERATION

Powerful Toolset, Multichannel Support

  • Mail Merge, Create Field, Fill Field, Update Field

  • Protect, Encrypt, Decrypt

  • Create, Modify, Remove hyperlink

  • Insert, Edit, remove bookmark

  • Find Replace Highlight

  • Merge and Split Word document

  • Header and Footer

  • Insert, Reply, remove Comment

  • Create & Update Table

  • Image and Shape

CONVERSION

Convert File Documents with High Quality

  • PDF

  • XPS

  • EPUB

  • SVG

  • PCL

  • Image

Doc/Docx

  • ODT

  • XML

  • HTML

  • RTF

  • TXT

  • PNG

  • BMP

  • JPEG

  • EMF

  • TIFF

MAIN FUNCTION

Only Spire.Doc for Python,
No Microsoft Office Automation

Spire.Doc for Python is a totally independent Python Word class library which doesn't require Microsoft Office installed on system. Microsoft Office Automation is proved to be unstable, slow, and not scalable to produce MS Word documents. Spire.Doc for Python is many times faster than Microsoft Word Automation and has much better stability and scalability.

Convert File Documents
with High Quality

By using Spire.Doc for Python, users can save Word Doc/Docx to stream, save as web response and convert Word Doc/Docx to XML, RTF, TXT, EMF, HTML, TIFF, ODT, Markdown and vice versa. Spire.Doc for Python also supports to convert Word Doc/Docx to PDF, images (SVG, PNG, JPEG), PostScript, OFD, XPS, EPUB, PCL (Printer Command Language), and convert RTF to PDF/HTML, convert HTML to PDF/image, convert Markdown to PDF.

Richest Word Document
Features Support

A common use of Spire.Doc for Python is to create Word document dynamically from scratch. Almost all Word document elements are supported, including pages, sections, headers, footers, digital signatures, footnotes, paragraphs, lists, tables, text, fields, hyperlinks, VBA Macros, bookmarks, comments, images, style, background settings, document settings and protection. Furthermore, drawing objects including shapes, textboxes, images, OLE objects, Latex Math Symbols, MathML Code and controls are supported as well.

Simple & Easy to Process
Pre-Existing Word Documents

Spire.Doc for Python enables developers to process pre-existing Word documents. It supports search and replace function, alignment, page break, filling fields, document concatenating, document copying, etc.

High Performance

  • High quality conversion.
  • High processing speed.

Other Technical Features

By using Spire.Doc for Python, developers can build any type of a 64-bit Python application to create and handle Word documents.

GET STARTED

Free Trials for All Progress Solutions

Here is a brief summary of Spire.Doc for Python features.

Technical Features

Spire.Doc for Python enables developers/programmers to build WinForms, Web Services, and other type for Python applications on 64-bit system.

Generating, Writing, Editing and Saving

Spire.Doc for Python enables quick generating, saving, writing and editing Word documents.
  • Generate and save Word documents (Word 97-2003, Word 2007, Word 2010, Word 2013, Word 2016, and Word 2019).
  • Load and save document with macros, including .doc (Word 97-2003) document with macros and .docm (Word 2007, Word 2010, Word 2013 and Word 2016) document.
  • Write and edit text and paragraphs.

Converting

Spire.Doc for Python enables converting Word documents to most common and popular formats.
  • Bi-directional conversion Doc-Docx: Convert .doc document (Word 97-2003) to .docx document (Word 2007, Word 2010, Word 2013 and Word 2016) and vice versa.
  • Bi-directional conversion Doc(x)-RTF: Convert .doc(x) document to RTF (Rich Text Format) and vice versa.
  • Bi-directional conversion Doc(x)-TXT: Convert .doc(x) document to TXT (Plain Text) and enable to load TXT file and save as .doc(x) document.
  • Bi-directional conversion Doc(x)-HTML: Convert .doc(x) document to HTML file and enable to load HTML file and save as .doc(x) document.
  • Bi-directional conversion Doc(x)-Dot: Convert .doc(x) document to Dot and vice versa.
  • Bi-directional conversion Doc(x)-XML: Convert .doc(x) document to XML and enable to load XML file and save as .doc(x) document.
  • Unidirectional Conversion Doc(x)-XPS: Convert .doc(x) document to XPS document.
  • Unidirectional Conversion: Doc(x)-EPUB: Convert .doc(x) document to EPUB (Digital Publishing).
  • Unidirectional Conversion: Doc(x)-PDF: Convert .doc(x) document to PDF in high quality, including contents and formats.

Inserting, Editing and Removing Objects

Spire.Doc for Python enables to inserting, editing and removing external objects in Word.
  • Find and replace specified strings.
  • Copy and remove comment, bookmark, table, texts, paragraph or sections.
  • Merge multiple Word documents into one.
  • Protect documents to prevent from opening, editing, etc.
  • Open and decrypt documents in protection.
  • Extract texts, comments, images etc. from document.
  • Load and save document with macros. Remove macros in document.
  • Create form field including elements: cells, texts, radio button, dropdown list, checkbox etc.
  • Fill form field by connecting data from xml file.
  • Create and edit document properties.
  • Clear macros in .doc and .docm document.
  • Supports adding Latex Math Symbols,MathML Code to Word.

Formatting

Spire.Doc for Python enables formatting contents in documents, including character, paragraphs, pages and whole document.
  • Format all characters in document, including fonts, sizes, colors, effects etc.
  • Format paragraphs, including built-in styles, indents, spacing, bullets, alignment, headings and number list style etc.
  • Format Word tables, including cell fonts and colors, cell background color, cell alignment, cell borders and column width/row height setting.
  • Format Word page, including page breaks, border, margins, paper size and orientation.
  • View document with different document view types, zoom percent and zoom types.

Feature Details

Support Word97~2003 Word2007 Word2010 Word2013 Word2016
Operation Create New Document Edit Existing Document
Save to file Save to stream Save as web response
Document Properties Setup Document Print Setup
Multiple Section Page Break
Document Copy Multiple Document Concatenate
Encrypt Document Decrypt Document
Globally Search Globally Replace
Mail Merge Nested Mail Merge Customize Mail Merge Fill Field
Format and Style Font Color Highlight
Indent List Text Alignment
Building Style Named Style
Content Image Hyperlink Comments Bookmark
Table Table of Content Foot Note Ole Object
Header (Text/Image/Table) Footer (Text/Image/Table)
CheckBoxFormField DropDownFormField TextFormField Textbox
TextWaterMark ImageWaterMark Field (91 types) HTML
Convert Src Type Open Save Dest Type
Doc Dot Docx Xml Txt Html PDF Rtf EPUB
Doc
Dot
Docx
Xml
Txt
Html
PDF × × × × × × × × × ×
Rtf
EPUB × × × × × × × × × ×

Spire.Doc for Python – Professional Word Development Component for Python