@jakob I've come up with an ingenious way to save your server's drives from overflowing:

gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE -dQUIET -sOutputFile=out.pdf in.pdf

With this you can remove all attachments except text and images. I've confirmed that the remaining size is mostly images by running `pdfimages -all in.pdf /tmp/out`. I think I'll make me an `unbloatpdf` alias or something.

@wasamasa Really impressive results, too; issue 0x09 shrank down by 71.4%


@jakob One more thing. Ghostscript fails on a few unprocessed PDFs as it expects valid input. I found pdftk to make for a good preprocessor (it fixes errors, but doesn't go all the way):

pdftk input.pdf output output.pdf

· SubwayTooter · 0 · 1 · 1
Sign in to participate in the conversation

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !
We are a moderated instance, that aren't supporting harassment nor hateful speech, so what sets us apart? Well, unlike many instances like us, we won't prevent you to interact with instances that aren't respecting our rules.
The main language used here is English, but for most of us this isn't our main language, so it's a great place to learn!

Topics you might find here

Here, we are open to any subjects, but the main ones are:
Fictions / Animes / Mangas / Comics
Gaming / e-Sport / Retro / Speedrun
Programming / Security / IT stuffs
Sometime politics / World events
Pictures and story from around the world <3