Package com.independentsoft.office.pdf

# Class PdfFlate

java.lang.Object
com.independentsoft.office.pdf.PdfFlate

public class PdfFlate extends Object
Flate (zlib/deflate) compression helper for PDF streams.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static byte[]`
  `compress​(byte[] data)`
  Compresses data with the Flate (zlib) algorithm as required by the PDF FlateDecode filter.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### compress

    public static byte[] compress​(byte[] data)
    Compresses data with the Flate (zlib) algorithm as required by the PDF FlateDecode filter.
    Parameters:
      `data` - the data to compress
    Returns:
      the compressed data