|
| 1 | +# MarkItDown GUI Setup and Run Guide |
| 2 | + |
| 3 | +This guide explains how to install dependencies and run the `markitdown-gui` desktop app. |
| 4 | + |
| 5 | +## 1. Prerequisites |
| 6 | + |
| 7 | +- Python 3.10+ |
| 8 | +- PowerShell (Windows) |
| 9 | +- This repository cloned locally |
| 10 | + |
| 11 | +## 2. Open the Project Folder |
| 12 | + |
| 13 | +```powershell |
| 14 | +cd D:\develpment\FileConverterToMD |
| 15 | +``` |
| 16 | + |
| 17 | +## 3. Create and Activate Virtual Environment |
| 18 | + |
| 19 | +```powershell |
| 20 | +python -m venv .venv |
| 21 | +.\.venv\Scripts\Activate.ps1 |
| 22 | +``` |
| 23 | + |
| 24 | +If script execution is blocked in PowerShell, run: |
| 25 | + |
| 26 | +```powershell |
| 27 | +Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass |
| 28 | +.\.venv\Scripts\Activate.ps1 |
| 29 | +``` |
| 30 | + |
| 31 | +## 4. Install MarkItDown with GUI + DOCX Support |
| 32 | + |
| 33 | +Recommended for GUI and Word files (`.docx`): |
| 34 | + |
| 35 | +```powershell |
| 36 | +pip install -e "packages/markitdown[gui,docx]" |
| 37 | +``` |
| 38 | + |
| 39 | +Install all optional converters instead: |
| 40 | + |
| 41 | +```powershell |
| 42 | +pip install -e "packages/markitdown[all,gui]" |
| 43 | +``` |
| 44 | + |
| 45 | +## 5. Run the GUI |
| 46 | + |
| 47 | +Option A (dedicated command): |
| 48 | + |
| 49 | +```powershell |
| 50 | +markitdown-gui |
| 51 | +``` |
| 52 | + |
| 53 | +Option B (through main CLI): |
| 54 | + |
| 55 | +```powershell |
| 56 | +markitdown --gui |
| 57 | +``` |
| 58 | + |
| 59 | +## 6. Convert Files in the GUI |
| 60 | + |
| 61 | +1. Click **Select Files** and choose one or more files. |
| 62 | +2. Choose output mode: |
| 63 | + - Keep **Save next to each source file** enabled, or |
| 64 | + - Disable it and select an **Output folder**. |
| 65 | +3. Click **Convert to Markdown**. |
| 66 | +4. Check the log panel for success/error messages. |
| 67 | + |
| 68 | +Each selected input file produces one `.md` output file. |
| 69 | + |
| 70 | +## 7. Quick Verification (Optional) |
| 71 | + |
| 72 | +Check CLI install: |
| 73 | + |
| 74 | +```powershell |
| 75 | +markitdown --version |
| 76 | +``` |
| 77 | + |
| 78 | +Quick single-file conversion test: |
| 79 | + |
| 80 | +```powershell |
| 81 | +markitdown "D:\path\to\file.docx" -o "D:\path\to\file.md" |
| 82 | +``` |
| 83 | + |
| 84 | +## Troubleshooting |
| 85 | + |
| 86 | +### Error: MissingDependencyException for `.docx` |
| 87 | + |
| 88 | +Install DOCX dependencies: |
| 89 | + |
| 90 | +```powershell |
| 91 | +pip install -e "packages/markitdown[docx]" |
| 92 | +``` |
| 93 | + |
| 94 | +or |
| 95 | + |
| 96 | +```powershell |
| 97 | +pip install -e "packages/markitdown[gui,docx]" |
| 98 | +``` |
| 99 | + |
| 100 | +### Error on reinstall: Access denied for `markitdown-gui.exe` |
| 101 | + |
| 102 | +Close any running GUI window, then reinstall: |
| 103 | + |
| 104 | +```powershell |
| 105 | +pip install -e "packages/markitdown[gui,docx]" |
| 106 | +``` |
| 107 | + |
| 108 | +### Command not found (`markitdown-gui`) |
| 109 | + |
| 110 | +- Ensure virtual environment is activated. |
| 111 | +- Reinstall package in editable mode: |
| 112 | + |
| 113 | +```powershell |
| 114 | +pip install -e "packages/markitdown[gui,docx]" |
| 115 | +``` |
0 commit comments