Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52771857b6 | ||
|
|
426f182bb9 |
No files matched your search
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 Michael A. Sloan
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,60 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user