{"version":"2.1.292","anchor":"pdf-reads-use-a-held-file-handle-bounded-page-counting","canonical_anchor":"pdf-reads-use-a-held-file-handle-bounded-page-counting","heading":"PDF reading keeps using the open file while rendering and counting pages","tier":"internal","area":"PDF Reading","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292\/e\/pdf-reads-use-a-held-file-handle-bounded-page-counting","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292","markdown":"### PDF reading keeps using the open file while rendering and counting pages\n\nWhen reading a PDF, Claude Code now passes the already open file, its size and a cancel signal into page rendering and page counting\n\n**What**\n\nWhen Claude Code reads pages from a PDF, or a whole PDF, it now hands the file it already has open, along with the file's size and a cancel signal, to the steps that render pages and count them. Those steps used to work from the file path and look up the size afterwards.\n\n**Why**\n\nIn practice the whole read works from one open file, and page counting can stop when the read is cancelled.\n\n- Area: PDF Reading\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}