pdfcraft/apps
wstock 1e54e709b6
CLI: text fails when the document cannot be opened (#132) (#233)
`PageRenderer::new` keeps a failed open as `None`, so `page_count()` is 0 and
`text` without `--page` iterated nothing, printed nothing and exited 0 on a
password-protected file. When the renderer has no pages, ask `inspect` why
and fail with its message (the same wording `info` gives); a document that
inspects fine but still renders no pages is reported as unparseable. A
genuinely empty document still succeeds.

Fixes #132

Co-authored-by: wstock <1394687+wstock@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-08 04:25:52 -04:00
..
pdfcraft Fix theme controls with shared System, Light and Dark preferences (#212) 2026-10-08 01:50:59 -04:00
pdfcraft-cli CLI: text fails when the document cannot be opened (#132) (#233) 2026-10-08 04:25:52 -04:00
pdfcraft-web Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00