1. Preface
  2. 1. Overview
  3. 2. Getting started
    1. 2.1. About ooxmlsdk
    2. 2.2. Design considerations
  4. 3. General
    1. 3.1. Cargo feature flags
    2. 3.2. Introduction to markup compatibility
    3. 3.3. Add a new document part that receives a relationship ID to a package
    4. 3.4. Add a new document part to a package
    5. 3.5. Copy the contents of an Open XML package part to a document part in a different package
    6. 3.6. Create a package
    7. 3.7. Get the contents of a document part from a package
    8. 3.8. Remove a document part from a package
    9. 3.9. Replace the theme part in a word processing document
    10. 3.10. Search and replace text in a document part
    11. 3.11. Diagnostic IDs
  5. 4. Presentations
    1. 4.1. Add an audio file to a slide in a presentation
    2. 4.2. Add a comment to a slide in a presentation
    3. 4.3. Reply to a comment in a presentation
    4. 4.4. Add a video to a slide in a presentation
    5. 4.5. Apply a theme to a presentation
    6. 4.6. Change the fill color of a shape in a presentation
    7. 4.7. Create a presentation document by providing a file name
    8. 4.8. Delete all the comments by an author from all the slides in a presentation
    9. 4.9. Delete a slide from a presentation
    10. 4.10. Get all the external hyperlinks in a presentation
    11. 4.11. Get all the text in a slide in a presentation
    12. 4.12. Get all the text in all slides in a presentation
    13. 4.13. Get the titles of all the slides in a presentation
    14. 4.14. Insert a new slide into a presentation
    15. 4.15. Move a slide to a new position in a presentation
    16. 4.16. Move a paragraph from one presentation to another
    17. 4.17. Open a presentation document for read-only access
    18. 4.18. Retrieve the number of slides in a presentation document
    19. 4.19. Structure of a PresentationML document
    20. 4.20. Add a transition to a slide in a presentation
    21. 4.21. Working with animation
    22. 4.22. Working with comments
    23. 4.23. Working with handout master slides
    24. 4.24. Working with notes slides
    25. 4.25. Working with presentations
    26. 4.26. Working with presentation slides
    27. 4.27. Working with slide layouts
    28. 4.28. Working with slide masters
  6. 5. Spreadsheets
    1. 5.1. Structure of a SpreadsheetML document
    2. 5.2. Add custom UI to a spreadsheet document
    3. 5.3. Calculate the sum of a range of cells in a spreadsheet document
    4. 5.4. Copy a Worksheet Using SAX (Simple API for XML)
    5. 5.5. Create a spreadsheet document by providing a file name
    6. 5.6. Delete text from a cell in a spreadsheet
    7. 5.7. Get a column heading in a spreadsheet
    8. 5.8. Get worksheet information from a package
    9. 5.9. Insert a chart into a spreadsheet
    10. 5.10. Insert a new worksheet into a spreadsheet
    11. 5.11. Insert text into a cell in a spreadsheet
    12. 5.12. Merge two adjacent cells in a spreadsheet
    13. 5.13. Open a spreadsheet document for read-only access
    14. 5.14. Open a spreadsheet document from a stream
    15. 5.15. Parse and read a large spreadsheet
    16. 5.16. Retrieve a dictionary of all named ranges in a spreadsheet
    17. 5.17. Retrieve a list of the hidden rows or columns in a spreadsheet
    18. 5.18. Retrieve a list of the hidden worksheets in a spreadsheet
    19. 5.19. Retrieve the values of cells in a spreadsheet
    20. 5.20. Retrieve a list of the worksheets in a spreadsheet
    21. 5.21. Working with the calculation chain
    22. 5.22. Working with conditional formatting
    23. 5.23. Working with formulas
    24. 5.24. Working with PivotTables
    25. 5.25. Working with the shared string table
    26. 5.26. Working with sheets
    27. 5.27. Working with tables
  7. 6. Word processing
    1. 6.1. Structure of a WordprocessingML document
    2. 6.2. Accept all revisions in a word processing document
    3. 6.3. Add tables to word processing documents
    4. 6.4. Apply a style to a paragraph in a word processing document
    5. 6.5. Change the print orientation of a word processing document
    6. 6.6. Change text in a table in a word processing document
    7. 6.7. Convert a word processing document from the DOCM to the DOCX file format
    8. 6.8. Create and add a character style to a word processing document
    9. 6.9. Create and add a paragraph style to a word processing document
    10. 6.10. Create a word processing document by providing a file name
    11. 6.11. Delete comments by all or a specific author in a word processing document
    12. 6.12. Extract styles from a word processing document
    13. 6.13. Insert a comment into a word processing document
    14. 6.14. Insert a picture into a word processing document
    15. 6.15. Insert a table into a word processing document
    16. 6.16. Open and add text to a word processing document
    17. 6.17. Open a word processing document for read-only access
    18. 6.18. Open a word processing document from a stream
    19. 6.19. Remove hidden text from a word processing document
    20. 6.20. Remove the headers and footers from a word processing document
    21. 6.21. Replace Text in a Word Document Using SAX (Simple API for XML)'
    22. 6.22. Replace the header in a word processing document
    23. 6.23. Replace the styles parts in a word processing document
    24. 6.24. Retrieve application property values from a word processing document
    25. 6.25. Retrieve comments from a word processing document
    26. 6.26. Set a custom property in a word processing document
    27. 6.27. Set the font for a text run
    28. 6.28. Validate a word processing document
    29. 6.29. Working with paragraphs
    30. 6.30. Working with runs
    31. 6.31. Working with WordprocessingML tables

ooxmlsdk-doc

Packages and general APIs

This section covers package-level ooxmlsdk APIs that apply across WordprocessingML, SpreadsheetML, and PresentationML documents.

Start here when you need to understand how the Rust crate opens packages, navigates parts and relationships, handles optional feature flags, or works with raw package content.

In this section

  • Cargo feature flags
  • Introduction to markup compatibility
  • Add a new document part that receives a relationship ID to a package
  • Add a new document part to a package
  • Copy the contents of an Open XML package part to a document part in a different package
  • Create a package
  • Get the contents of a document part from a package
  • Remove a document part from a package
  • Replace the theme part in a word processing document
  • Search and replace text in a document part
  • Diagnostic IDs

Related sections

  • Getting started
  • Word processing
  • Spreadsheets
  • Presentations