2021-08-10 15:41:18 +02:00
|
|
|
# CHAPTER 5. Compression
|
2021-07-26 20:50:33 +02:00
|
|
|
|
2021-08-10 15:41:18 +02:00
|
|
|
def compress(pdf):
|
|
|
|
"""compress(pdf) compresses any uncompressed streams in the given PDF
|
|
|
|
using the Flate algorithm."""
|
2021-07-26 20:50:33 +02:00
|
|
|
|
2021-08-10 15:41:18 +02:00
|
|
|
def decompress(pdf):
|
|
|
|
"""uncompress(pdf) uncompresses any streams in the given PDF, so long as
|
|
|
|
the compression method is supported."""
|
2021-07-26 20:50:33 +02:00
|
|
|
|
2021-08-10 15:41:18 +02:00
|
|
|
def squeezeInMemory(pdf):
|
|
|
|
"""squeezeToMemory(pdf) squeezes a pdf in memory."""
|