<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><metahttp-equiv="Content-Type"content="text/html; charset=ISO-8859-1"><title>SetCompression</title><linktype="text/css"rel="stylesheet"href="../fpdf.css"></head><body><h1>SetCompression</h1><code>SetCompression(<b>boolean</b> compress)</code><h2>Description</h2>Activates or deactivates page compression. When activated, the internal representation ofeach page is compressed, which leads to a compression ratio of about 2 for the resultingdocument.<br>Compression is on by default.<br><br><strong>Note:</strong> the Zlib extension is required for this feature. If not present, compressionwill be turned off.<h2>Parameters</h2><dlclass="param"><dt><code>compress</code></dt><dd>Boolean indicating if compression must be enabled.</dd></dl><hrstyle="margin-top:1.5em"><divstyle="text-align:center"><ahref="index.htm">Index</a></div></body></html>