CHAPTER 5. Compression Cpdf.compress(Cpdf.Pdf) Compresses any uncompressed streams in the given PDF using the Flate algorithm. Cpdf.decompress(Cpdf.Pdf) Decompresses any streams in the given PDF, so long as the compression method is supported. Cpdf.squeezeInMemory(Cpdf.Pdf) Squeezes a pdf in memory.