Skip to content

Hand over every page at once, and hand over the words - #21

Merged
tannevaled merged 1 commit into
mainfrom
hand-over-more
Aug 29, 2026
Merged

Hand over every page at once, and hand over the words#21
tannevaled merged 1 commit into
mainfrom
hand-over-more

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

A page at a time is no use for a document of two hundred, and a browser handed two hundred downloads at once asks about each of them. Every page now comes out as one zip of PNGs — which is also what a comic reader opens under the name CBZ, the same file with another suffix.

And what a page says is handed over as a .txt. The reading beside it has been showing those words on the screen all along, with no way to take them away.

Both refuse rather than hand over something misleading: a page that will not draw stops the zip, a page whose words cannot be read hands over nothing rather than an empty file that would read as a blank page, and a document still being drawn when its time ran out says how many of its pages were cut short.

The zip is built in memory, so the three errors a zip.Writer can report cannot happen here — Create only refuses a name already used or a writer already closed, and a bytes.Buffer never fails to take bytes. They are not handled, and why is written where they would have been.

Parity: BentoPDF's PDF to Image for a whole document, PDF to CBZ, and PDF to Text.

100% statement coverage, go vet and -race clean, the wasm build, and the browser check.

A page at a time is no use for a document of two hundred, and a browser handed
two hundred downloads at once asks about each of them. Every page now comes out
as one zip of PNGs — which is also what a comic reader opens under the name
CBZ, the same file with another suffix.

And what a page says is handed over as a .txt. The reading beside it has been
showing those words on the screen all along with no way to take them away.

Both refuse rather than hand over something misleading. A page that will not
draw stops the zip, a page whose words cannot be read hands over nothing rather
than an empty file that would read as a blank page, and a document still being
drawn when its time ran out says how many of its pages were cut short.

The zip is built in memory, so the three errors a zip.Writer can report cannot
happen here: Create only refuses a name already used or a writer already
closed, and a bytes.Buffer never fails to take bytes. They are not handled,
and why is written where they would have been.

100% statement coverage, go vet and -race clean, the wasm build, and the
browser check.
@tannevaled
tannevaled merged commit 2bbc0ae into main Aug 29, 2026
2 checks passed
@tannevaled
tannevaled deleted the hand-over-more branch August 29, 2026 20:32
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