feat(pdf): report the page count from size #9
Loading…
Reference in a new issue
No description provided.
Delete branch "pdf-size-page-count"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pdf sizenow opens the file with the sharedopen_readerguard and reports the page count alongside the size verdict, e.g.sample.pdf is 545.0kB, 12 pages, under the 5.0MB limit. A file that does not parse as a PDF now exits 1 like the other verbs.Tests move the size cases onto a new
sized_pdffixture (a real one-page PDF padded to an exact byte size), keeping the blob-basedpdf_filefixture for the not-a-PDF cases, and add page-count, singular, and corrupt-file cases.Resolves the tool half of gravityfargo/claude-sync#53 — the vault CLAUDE.md advice to get the page count from
pdf sizebeforeReadnow works as written.