|
| 1 | +# Office Converter All-in-One |
| 2 | + |
| 3 | +Offline Windows desktop utility for common office conversion tasks: Word ↔ PDF, DOC → DOCX, PDF ↔ PNG, PDF → DOCX, plus PDF merge and split. |
| 4 | + |
| 5 | +[Русская версия README](README.ru.md) |
| 6 | + |
| 7 | +## Features |
| 8 | + |
| 9 | +- **Word → PDF** for `.doc` and `.docx` files via Microsoft Word automation. |
| 10 | +- **DOC → DOCX** conversion via Microsoft Word automation. |
| 11 | +- **PDF → DOCX** using `pdf2docx`. |
| 12 | +- **PDF → PNG** page export using PyMuPDF. |
| 13 | +- **PNG/JPG → PDF**, either one PDF per image or one merged PDF. |
| 14 | +- **PDF merge** and **PDF split** by pages or ranges. |
| 15 | +- Recursive folder search, optional overwrite, preserving subfolder structure, progress bar and operation log. |
| 16 | +- Runtime **RU / EN** interface switcher. |
| 17 | +- Offline workflow: no file uploads to online conversion services. |
| 18 | + |
| 19 | +## Requirements |
| 20 | + |
| 21 | +- Windows 10/11. |
| 22 | +- Python 3.10 or newer for building/running from source. |
| 23 | +- Microsoft Word is required only for Word/DOC/DOCX modes. |
| 24 | +- Internet access is needed only during the first dependency installation. |
| 25 | + |
| 26 | +## Build a portable EXE on Windows |
| 27 | + |
| 28 | +1. Download or clone this repository. |
| 29 | +2. Open the project folder in Windows Explorer. |
| 30 | +3. Run `build_exe.bat`. |
| 31 | +4. After a successful build, the executable will be here: |
| 32 | + |
| 33 | +```text |
| 34 | +dist\OfficeConvertorPortable.exe |
| 35 | +``` |
| 36 | + |
| 37 | +The EXE name intentionally keeps the historical `OfficeConvertorPortable` spelling for compatibility with earlier local builds. |
| 38 | + |
| 39 | +## Run from source on Windows |
| 40 | + |
| 41 | +```bat |
| 42 | +py -3 -m venv .venv |
| 43 | +.venv\Scripts\python.exe -m pip install --upgrade pip setuptools wheel |
| 44 | +.venv\Scripts\python.exe -m pip install -r requirements.txt |
| 45 | +.venv\Scripts\python.exe office_converter.py |
| 46 | +``` |
| 47 | + |
| 48 | +## Smoke tests |
| 49 | + |
| 50 | +On Windows: |
| 51 | + |
| 52 | +```bat |
| 53 | +run_smoke_tests.bat |
| 54 | +``` |
| 55 | + |
| 56 | +Cross-platform developer check, for example in CI: |
| 57 | + |
| 58 | +```bash |
| 59 | +python tests/smoke_tests.py |
| 60 | +``` |
| 61 | + |
| 62 | +The smoke tests cover the translated UI labels, absence of removed branding, basic path helpers, image/PDF conversion helpers, PDF merge/split and Windows batch-file line endings. Microsoft Word COM automation is not tested outside Windows with Word installed. |
| 63 | + |
| 64 | +## Repository structure |
| 65 | + |
| 66 | +```text |
| 67 | +office_converter.py Main Tkinter application |
| 68 | +OfficeConvertorPortable.spec PyInstaller build spec |
| 69 | +build_exe.bat Windows EXE build helper |
| 70 | +run_smoke_tests.bat Local smoke-test helper |
| 71 | +requirements.txt Runtime/build dependencies |
| 72 | +tests/smoke_tests.py Smoke tests |
| 73 | +docs/ Build, upload, release and license notes |
| 74 | +.github/workflows/smoke-tests.yml GitHub Actions smoke test |
| 75 | +``` |
| 76 | + |
| 77 | +## Notes and limitations |
| 78 | + |
| 79 | +- Word automation requires installed Microsoft Word and runs only on Windows. |
| 80 | +- PDF → DOCX attempts to reconstruct document structure; complex layouts may not convert perfectly. |
| 81 | +- Unsigned PyInstaller binaries can trigger antivirus warnings. Build from source if you need maximum trust. |
| 82 | +- Before publishing binaries or choosing a project license, read [`docs/LICENSE_CHOICE.md`](docs/LICENSE_CHOICE.md) and [`docs/THIRD_PARTY_NOTICES.md`](docs/THIRD_PARTY_NOTICES.md), especially the PyMuPDF licensing note. |
| 83 | + |
| 84 | +## License |
| 85 | + |
| 86 | +A project license has not been selected yet. See [`docs/LICENSE_CHOICE.md`](docs/LICENSE_CHOICE.md) before making the repository public or attaching release binaries. |
0 commit comments