61 lines
1.9 KiB
Markdown
61 lines
1.9 KiB
Markdown
# 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)](https://git.masengr.com/Michael-A-Sloan/Word_Attachment_Extractor/releases/tag/v1.0.0)
|
|
|
|
## Quick start
|
|
|
|
1. Download `WordAttachmentExtractor.exe` from [Releases](https://git.masengr.com/Michael-A-Sloan/Word_Attachment_Extractor/releases).
|
|
2. Run it (no Python install needed).
|
|
3. **Add files…** or **Add folder…**, then **Scan attachments**.
|
|
4. Check or uncheck what you want in the list.
|
|
5. 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
|
|
|
|
```bash
|
|
python -m pip install -r requirements.txt
|
|
python app.py
|
|
```
|
|
|
|
## Build the EXE
|
|
|
|
On Windows:
|
|
|
|
```bat
|
|
build.bat
|
|
```
|
|
|
|
Or:
|
|
|
|
```bash
|
|
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 `.doc` files are not supported — save as `.docx` first.
|
|
- 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](LICENSE) © 2026 Michael A. Sloan
|