darachhat
feat: build production-ready Khmer Document Corpus v0.2.0 with Typer CLI, PyMuPDF, Polars, and DI architecture
c4e128a | # preview/ | |
| This directory stores page preview images generated from PDFs. | |
| ## Structure | |
| Each document gets its own sub-directory named after the PDF stem: | |
| ``` | |
| preview/ | |
| └── <document-stem>/ | |
| ├── page_0001.png | |
| ├── page_0002.png | |
| └── ... | |
| ``` | |
| ## Generation | |
| Use the CLI to generate previews: | |
| ```bash | |
| kdc preview --pdf-dir pdf/ --out-dir preview/ --dpi 150 | |
| ``` | |
| ## Format | |
| - **Format**: PNG | |
| - **DPI**: 150 (configurable) | |
| - **Default**: First page only | |