13 lines
430 B
TeX
Raw Normal View History

2021-08-10 14:41:18 +01:00
def compress(pdf):
2021-09-01 19:41:10 +02:00
"""Compress any uncompressed streams in the given PDF using the Flate
algorithm."""
2021-07-26 19:50:33 +01:00
2021-08-10 14:41:18 +01:00
def decompress(pdf):
2021-09-01 19:41:10 +02:00
"""Decompress any streams in the given PDF, so long as the compression
method is supported."""
2021-07-26 19:50:33 +01:00
2021-08-10 14:41:18 +01:00
def squeezeInMemory(pdf):
2021-09-01 19:41:10 +02:00
"""squeezeToMemory(pdf) squeezes a pdf in memory. Squeezing is a lossless
2024-04-17 07:59:48 +08:00
compression method which works by rearrangement of a PDFs internal
structure."""