Re:Sci-Hub’s cache of pirated papers is so big, subscription...
by mkl on Thursday July 27, 2017 @07:11PM
(#14870570)
I deal with making PDFs a lot, and some of my processing steps (using pdfjam) make the file size explode. Currently I have no efficient way to make them smaller again. I would love to see how you do it.
[ Parent
| on HN ]
Re:Sci-Hub’s cache of pirated papers is so big, subscription...
by philipkglass on Thursday July 27, 2017 @08:19PM
(#14870955)
The Multivalent PDF tool is still my go-to. It hasn't been updated in ages, but the jar still works fine:
http://multivalent.sourceforge.net/download.html
If you run
java tool.pdf.Compress file.pdf
it will generate file-o.pdf and often trim quite a bit of weight.
That's probably what I would suggest sci-hub use too because it's easy to use and automatic.
EDIT: this looks quite promising too: https://github.com/pts/pdfsizeopt
But it has bugs with handling some images... converts them to black boxes. I'd only use this one if you manually verify the result first (so not a fully scripted process). (Or this could be due to me not installing all the bleeding edge dependencies from source as instructed.)