Hacker News new | ask | show | jobs
by veqq 92 days ago
Why is the PDF smaller than the Epub file?
2 comments

The ePub contains both SVGs and PNGs, the latter of which doesn't compress all that well for "plain zip", which an ePub is.

The PDF on the other hand gets to use zlib for streaming all the objects. It gets half decent compression.

Probably vector-drawn diagrams are rendered into bitmap images for the EPUB version.