setcompression.htm 972 B

12345678910111213141516171819202122232425262728293031
  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=ISO-8859-1">
  5. <TITLE>SetCompression</TITLE>
  6. <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
  7. </HEAD>
  8. <BODY>
  9. <H2>SetCompression</H2>
  10. <TT>SetCompression(<B>boolean</B> compress)</TT>
  11. <H4 CLASS='st'>Version</H4>
  12. 1.4
  13. <H4 CLASS='st'>Description</H4>
  14. Activates or deactivates page compression. When activated, the internal representation of
  15. each page is compressed, which leads to a compression ratio of about 2 for the resulting
  16. document.
  17. <BR>
  18. Compression is on by default.
  19. <BR>
  20. <BR>
  21. <B>Note: </B>the Zlib extension is required for this feature. If not present, compression
  22. will be turned off.
  23. <H4 CLASS='st'>Parameters</H4>
  24. <TT><U>compress</U></TT>
  25. <BLOCKQUOTE>
  26. Boolean indicating if compression must be enabled.
  27. </BLOCKQUOTE>
  28. <HR STYLE="margin-top:1.2em">
  29. <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
  30. </BODY>
  31. </HTML>