1.9 KiB
1.9 KiB
Word Attachment Extractor
Pull every PDF, Excel sheet, and other file stuck inside a Word document — keep the real names, pick what you want, save the rest.
Download the Windows EXE (v1.0.0)
Quick start
- Download
WordAttachmentExtractor.exefrom Releases. - Run it (no Python install needed).
- Add files… or Add folder…, then Scan attachments.
- Check or uncheck what you want in the list.
- Click Extract selected.
Leave the output folder blank to create a DocumentName_attachments folder next to each Word file.
What it does
| Feature | Detail |
|---|---|
| Formats | .docx and .docm |
| Attachments | Embedded OLE objects, packaged files, Acrobat PDFs, Excel workbooks |
| Names | Recovers original filenames from OLE metadata and icon captions when Word stored them |
| Selection | Checklist UI — select all, deselect, or invert before extracting |
| Excel fix | Unhides workbook views Word marks as hidden (avoids blank/black Excel windows) |
| PDFs | Pulls real PDF bytes out of Acrobat OLE wrappers (not opaque .bin files) |
Run from source
python -m pip install -r requirements.txt
python app.py
Build the EXE
On Windows:
build.bat
Or:
python -m pip install -r requirements.txt
python -m PyInstaller --noconfirm --clean --onefile --windowed --name "WordAttachmentExtractor" app.py
Output: dist\WordAttachmentExtractor.exe
Notes
- Old binary
.docfiles are not supported — save as.docxfirst. - Linked (external) files that are not embedded in the document cannot be extracted.
- If Word never stored a usable name, the tool falls back to a content-based name (for example
attachment.pdf).
License
MIT © 2026 Michael A. Sloan