## set_compression ##

```python
fpdf.set_compression(compress: bool)
```

### Description ###

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.

### Parameters ###

compress:
> Boolean indicating if compression must be enabled.

