Word processing
This section covers WordprocessingML packages (.docx, .docm, .dotx) with ooxmlsdk.
Wordprocessing packages are made of a main document part, optional styles, comments, numbering, settings, headers, footers, footnotes, endnotes, media, custom properties, and relationships between those parts. In ooxmlsdk, the entry point is usually ooxmlsdk::parts::wordprocessing_document::WordprocessingDocument.
Use the parts feature, enabled by default, to open and save packages. Examples in this section are backed by tested Rust code in listings/word.
In this section
- Structure of a WordprocessingML document
- Accept all revisions in a word processing document
- Add tables to word processing documents
- Apply a style to a paragraph in a word processing document
- Change the print orientation of a word processing document
- Change text in a table in a word processing document
- Convert a word processing document from the DOCM to the DOCX file format
- Create and add a character style to a word processing document
- Create and add a paragraph style to a word processing document
- Create a word processing document by providing a file name
- Delete comments by all or a specific author in a word processing document
- Extract styles from a word processing document
- Insert a comment into a word processing document
- Insert a picture into a word processing document
- Insert a table into a word processing document
- Open and add text to a word processing document
- Open a word processing document for read-only access
- Open a word processing document from a stream
- Remove hidden text from a word processing document
- Remove the headers and footers from a word processing document
- Replace text in a word document using SAX
- Replace the header in a word processing document
- Replace the styles parts in a word processing document
- Retrieve application property values from a word processing document
- Retrieve comments from a word processing document
- Set a custom property in a word processing document
- Set the font for a text run
- Validate a word processing document
- Working with paragraphs
- Working with runs
- Working with WordprocessingML tables
Writer-focused chapters are being ported only when the code has a fixture in listings/ and passes cargo test --workspace.