If you’d like to try it yourself, please visit our free interactive web demo. No code or account is necessary.
How DOCX Files Are Processed
DOCX files are processed by extracting each element and processing according to the table below. The de-identified or redacted file is created according to the behaviour specified in the table.| Property Type | Details | Default Behaviour | Options |
|---|---|---|---|
| Core properties | Author, Category, Comments, Content Status, Identifier, Keywords, Language, Last Modified By, Subject, Title, Version | Redact | Keep, Redact |
| Headers and footers | Any content in headers and footers, such as text and images | Redact | Keep, Redact |
| Tables | Table objects with text and images | Redact | Keep, Redact |
| Images | The Images page provides a more detailed look at Image processing | Redact, unsupported image types are removed | Redact |
| Text content | Main body content | Redact | Keep, Redact |
| Text boxes | Floating text boxes | Redact | Keep, Redact |
| Embedded links | Hyperlinks to internet pages or documents | Remove | Keep, Redact |
| External elements | Tables and charts embedded from another document or file, such as an Excel chart | Remove external file, redact cached values | Remove external file, redact cached values |
| Embedded audio & video | Videos and audio clips | Remove | Remove |
| Review comments | Comments from document reviews | Redact | Keep, Redact |
| Shape objects | Shapes containing text | Redact | Keep, Redact |
| Ink Drawings | Drawings in DOCX documents | Remove | Keep, Remove |
See the API Reference for changing the default behaviour.
Graphical content (images) where text is present will be OCRed and then redacted. You can configure the OCR System by setting it as an Environment Variable or sending it in the request object. Check out our OCR Guide to further understand the OCR modes and their usage.
How DOC Files Are Processed
DOC files are processed by converting into DOCX files, followed the process described above and then converting back to DOC files.Constraints
- If a piece of PII text has more than one style (different fonts, font sizes, underline etc.), the redaction marker will use the first style.
- Charts in DOCX files contain an underlying .XLSX document that is automatically removed during deidentification. The cached chart values are deidentified by default.
- Certain MHT files can be natively opened with Microsoft Word by changing the extension from MHT to DOC. Those files are not supported. We recommend that you use Microsoft Word to convert those files to DOCX.
- We recommend using Microsoft Word to open the processed DOC/DOCX files. Other editors may not give ideal results.
Support Matrix
| CPU Container | GPU Container | Community API | Professional API | |
|---|---|---|---|---|
| Supported | Yes | Yes | Up to 10 MiB | No |
Sample Request
Connect with one of our privacy experts to run this code.
Sample Response
Response