
Docx Tools
by Appian Corporation
Description
Create an un-protected copy of a protected DOCX document
Features
Smart Service CreateUnprotectedCopyDocx: Create Unprotected Copy Of DOCX Smart Service ExtractCommentsFromDocx2: Extracts all comments from a DOCX file and returns them as a JSON tree. Supports threaded replies, resolved status, and anchor text (the text highlighted when the comment was created). Smart Service ExtractEmbeddedDocumentsAndImagesFromDocx: Extracts all embedded documents and images from a DOCX file and saves them as Appian documents in a specified folder. Smart Service InspectTrackChangesFromDocx: Inspects a DOCX file to determine whether track changes recording is currently enabled and whether there are any pending unaccepted changes. Smart Service ExtractUrlsFromDocx: Extracts all unique URLs from a DOCX file. Covers all ways a URL can exist in a Word document
Release notes
Summary
Adds four new smart services to the ps-plugin-DocxTools plugin for interacting
with Microsoft Word DOCX documents.
New Smart Services
1. ExtractCommentsFromDocx
Extracts all comments from a DOCX file and returns them as a JSON comment tree.
Inputs:
SourceDocument(Document) — the DOCX file to processOnlyUnresolved(Boolean, default false) — filters out resolved comments and their subtrees
Outputs: CommentsJson (Text), CommentCount (Integer), Error (Boolean), ErrorMessage (Text)
Key features:
- Threaded replies via
word/commentsExtended.xml(Word 2013+); falls back to flat list for older files - Resolved status (
true/false/null) per comment - Anchor text — the text highlighted when the comment was created
- Output consumable via
a!fromJson()in Appian
2. InspectTrackChangesFromDocx
Inspects a DOCX file to determine whether track changes recording is enabled
and whether there are pending unaccepted changes.
Inputs:
SourceDocument(Document) — the DOCX file to processIgnoreFormattingChanges(Boolean, default false) — excludes formatting-only changes when detecting pending changes
Outputs: TrackChangesEnabled (Boolean), HasPendingChanges (Boolean), Error (Boolean), ErrorMessage (Text)
3. ExtractUrlsFromDocx
Extracts all hyperlinks (URLs) from a DOCX file.
Inputs:
SourceDocument(Document) — the DOCX file to process
Outputs: Urls (Text Array), UrlCount (Integer), Error (Boolean), ErrorMessage (Text)
4. ExtractEmbeddedDocumentsFromDocx
Extracts files embedded as OLE objects inside a DOCX and saves them as Appian documents.
Inputs:
SourceDocument(Document) — the DOCX file to processTargetFolder(Folder) — where to save the extracted files
Outputs: ExtractedCount (Long), ExtractedDocuments (List of Document), Error (Boolean), ErrorMessage (Text)
Version history (6)
1.2.0
Summary
Adds four new smart services to the ps-plugin-DocxTools plugin for interacting
with Microsoft Word DOCX documents.
New Smart Services
1. ExtractCommentsFromDocx
Extracts all comments from a DOCX file and returns them as a JSON comment tree.
Inputs:
SourceDocument(Document) — the DOCX file to processOnlyUnresolved(Boolean, default false) — filters out resolved comments and their subtrees
Outputs: CommentsJson (Text), CommentCount (Integer), Error (Boolean), ErrorMessage (Text)
Key features:
- Threaded replies via
word/commentsExtended.xml(Word 2013+); falls back to flat list for older files - Resolved status (
true/false/null) per comment - Anchor text — the text highlighted when the comment was created
- Output consumable via
a!fromJson()in Appian
2. InspectTrackChangesFromDocx
Inspects a DOCX file to determine whether track changes recording is enabled
and whether there are pending unaccepted changes.
Inputs:
SourceDocument(Document) — the DOCX file to processIgnoreFormattingChanges(Boolean, default false) — excludes formatting-only changes when detecting pending changes
Outputs: TrackChangesEnabled (Boolean), HasPendingChanges (Boolean), Error (Boolean), ErrorMessage (Text)
3. ExtractUrlsFromDocx
Extracts all hyperlinks (URLs) from a DOCX file.
Inputs:
SourceDocument(Document) — the DOCX file to process
Outputs: Urls (Text Array), UrlCount (Integer), Error (Boolean), ErrorMessage (Text)
4. ExtractEmbeddedDocumentsFromDocx
Extracts files embedded as OLE objects inside a DOCX and saves them as Appian documents.
Inputs:
SourceDocument(Document) — the DOCX file to processTargetFolder(Folder) — where to save the extracted files
Outputs: ExtractedCount (Long), ExtractedDocuments (List of Document), Error (Boolean), ErrorMessage (Text)
1.01.0
Updated API usage and license file
1.0.3
Security Upgrades
1.0.2
Security Updates
1.0.1
Security Updates
1.0.0
[MIGRATED] Plugin to interact with Microsoft Word DOCX documents.
Un-protect and Copy DOCX
- Create an un-protected copy of a protected DOCX document