Skip to content

forward hide_text through archive read path to PDFFile#129

Closed
ajslater wants to merge 1 commit into
developfrom
claude/forward-hide-text
Closed

forward hide_text through archive read path to PDFFile#129
ajslater wants to merge 1 commit into
developfrom
claude/forward-hide-text

Conversation

@ajslater
Copy link
Copy Markdown
Owner

@ajslater ajslater commented May 9, 2026

Summary

Plumbs the new hide_text knob from comicbox-pdffile (ajslater/pdffile#19) through the comicbox read path so callers — codex in particular — can request invisible-text rendering on PDF pages without bypassing comicbox's archive abstraction.

  • get_page_by_index, get_pages, get_page_by_filename accept hide_text: bool = False and forward it.
  • _archive_readfile (in ComicboxArchiveRead) and Archive.read (the dispatcher) accept it too.
  • PDF archives forward it to PDFFile.read(..., hide_text=...); non-PDF archive types accept the kwarg and silently ignore it (it has no meaning for image-pages-in-zip layouts).

Requires comicbox-pdffile > 0.5.0 once that PR ships.

Test plan

  • New tests/test_pages.py cases: PDF hide_text changes the page (pixmap differs from baseline), hide_text=False matches the legacy default, non-PDF archive accepts and ignores the kwarg.
  • Full suite passes (310 tests).
  • Lint (ruff, ty) clean.

🤖 Generated with Claude Code

Adds ``hide_text: bool = False`` keyword to ``get_page_by_index``,
``get_pages``, ``get_page_by_filename``, ``_archive_readfile``, and
``Archive.read``. PDF archives forward it to ``PDFFile.read``;
non-PDF archives accept the kwarg and silently ignore it (it has
no meaning for image-pages-in-zip layouts).

Requires comicbox-pdffile > 0.5.0 (the version that adds the
``hide_text`` knob to ``read_pdf`` / ``read_pixmap`` / ``read``).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ajslater ajslater closed this May 9, 2026
@ajslater ajslater deleted the claude/forward-hide-text branch May 25, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant