13 lines
380 B
TeX
13 lines
380 B
TeX
# CHAPTER 5. Compression
|
|
|
|
def compress(pdf):
|
|
"""compress(pdf) compresses any uncompressed streams in the given PDF
|
|
using the Flate algorithm."""
|
|
|
|
def decompress(pdf):
|
|
"""uncompress(pdf) uncompresses any streams in the given PDF, so long as
|
|
the compression method is supported."""
|
|
|
|
def squeezeInMemory(pdf):
|
|
"""squeezeToMemory(pdf) squeezes a pdf in memory."""
|