DOCX (.docx, .docm)
- Import is fully compatible with the Word 2007 standard.
Background & Context

-
- Registered MIME type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
- Microsoft Word document file.
- Standard format of Microsoft Word 2007 and higher.
- Also known as Office Open XML document.
- XML-based file bundle.
- Stores text, tables and graphics.
Import

- Import["file.docx"] imports a DOCX file as a string.
- Import["file.docx",elements] imports the specified elements.
- The import format can be specified with Import["file","DOCX"] or Import["file",{"DOCX",elem,…}].
- See the following reference pages for full general information:
-
Import import from a file CloudImport import from a cloud object ImportString import from a string ImportByteArray import from a byte array
Import Elements

- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements - Data representation elements:
-
"Plaintext" a string giving the textual content of the whole document "FormattedText" a sequence of formatted text for the whole document - Embedded media elements:
-
"EmbeddedImageNames" a list of image file names in the bundle "EmbeddedImages" a list of embedded images - Metadata elements:
-
"CreationDate" creation date of the document, given as a DateObject "Creator" program that created the content "Description" document description "Language" document language "LastModifiedBy" author who last modified the file "ModificationDate" modification date of the document, given as a DateObject "RawMetaInformation" metadata given as strings and date objects "RevisionNumber" number of times the document has been saved "Subject" the subject of the document "Title" document title
Examples
open all close allImport Elements (15)
Data Representation (2)
Embedded Media Elements (2)
Metadata (10)
Tech Notes
Related Guides
History
Introduced in 2024 (14.0)