@codetholdory Sadly, there were a few issues. #PyPDF4 isn't really ready - no documentation (though maybe in theory it's still identical to PyPDF2). And #PyPDF2 documentation is all outdated! All of the methods were renamed from snake case to camel case, and some given completely new names. Managed to figure out all that and reproduce the compression example, but it actually results in a slightly larger file instead!