fpdf.set_compression(compress: bool)
Activates or deactivates page compression. When activated, the internal representation of each page is compressed, which leads to a compression ratio of about 2 for the resulting document.
Compression is on by default.
compress:
Boolean indicating if compression must be enabled.