Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
| 2 | <html>
|
| 3 | <head>
|
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
| 5 | <title>SetCompression</title>
|
| 6 | <link type="text/css" rel="stylesheet" href="../fpdf.css">
|
| 7 | </head>
|
| 8 | <body>
|
| 9 | <h1>SetCompression</h1>
|
| 10 | <code>SetCompression(<b>boolean</b> compress)</code>
|
| 11 | <h2>Description</h2>
|
| 12 | Activates or deactivates page compression. When activated, the internal representation of
|
| 13 | each page is compressed, which leads to a compression ratio of about 2 for the resulting
|
| 14 | document.
|
| 15 | <br>
|
| 16 | Compression is on by default.
|
| 17 | <br>
|
| 18 | <br>
|
| 19 | <strong>Note:</strong> the Zlib extension is required for this feature. If not present, compression
|
| 20 | will be turned off.
|
| 21 | <h2>Parameters</h2>
|
| 22 | <dl class="param">
|
| 23 | <dt><code>compress</code></dt>
|
| 24 | <dd>
|
| 25 | Boolean indicating if compression must be enabled.
|
| 26 | </dd>
|
| 27 | </dl>
|
| 28 | <hr style="margin-top:1.5em">
|
| 29 | <div style="text-align:center"><a href="index.htm">Index</a></div>
|
| 30 | </body>
|
| 31 | </html>
|