blob: d60c905ed2204623675e120296379fcbbb4eaf8a [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<!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>
12Activates or deactivates page compression. When activated, the internal representation of
13each page is compressed, which leads to a compression ratio of about 2 for the resulting
14document.
15<br>
16Compression is on by default.
17<br>
18<br>
19<strong>Note:</strong> the Zlib extension is required for this feature. If not present, compression
20will be turned off.
21<h2>Parameters</h2>
22<dl class="param">
23<dt><code>compress</code></dt>
24<dd>
25Boolean 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>