4 ms·
100KB sounds very limiting, you'll easily go above that with just fonts in some poorly constructed PDFs. The first rule of PDFs is to always reproduce at the s
by hnick 6y ago
100KB sounds very limiting, you'll easily go above that with just fonts in some poorly constructed PDFs.
The first rule of PDFs is to always reproduce at the source if you can, they can be modified/edited but are better considered as an append-only format because of how they are made. There are so many choices that can be made in their construction that are hard to undo later, such as per-character placement instead of per-word or per-line with spaces, each consuming more stream data because of extra overhead in offsets etc (which compresses well as a text stream but still adds up).
Taking out or resampling images like you said is probably the best starting point unless you've found there is a lot of overhead (metadata/unused objects) to trim.