Show / Hide Table of Contents

# Class FlateEncode

FlateEncode filter can be used to compress any data stream using Flate (i.e. ZIP) compression method.

##### Inheritance

object
Filter
FlateEncode

##### Implements

IDisposable

##### Inherited Members

Filter.GetName()
Filter.GetDecodeName()
Filter.Begin()
Filter.Size()
Filter.Consume(int)
Filter.Count()
Filter.SetCount(int)
Filter.SetStreamLength(int)
Filter.AttachFilter(Filter)
Filter.ReleaseAttachedFilter()
Filter.GetAttachedFilter()
Filter.GetSourceFilter()
Filter.Flush()
Filter.FlushAll()
Filter.IsInputFilter()
Filter.CanSeek()
Filter.Seek(int, Filter.ReferencePos)
Filter.Tell()
Filter.CreateInputIterator()
Filter.GetFilePath()
Filter.WriteToFile(string, bool)
Filter.Dispose(bool)
Filter.Dispose()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: pdftron.Filters

###### Assembly: PDFNet.dll

##### Syntax

    public class FlateEncode : Filter, IDisposable

### Constructors

#### FlateEncode(Filter)

Constructor for Flate encoder.

##### Declaration

    public FlateEncode(Filter input_filter)

##### Parameters

Type | Name | Description
--- | --- | ---
Filter | input_filter | the input data stream

##### Exceptions

Type | Condition
--- | ---
PDFNetException | PDFNetException the PDFNet exception

#### FlateEncode(Filter, int)

Instantiates a new flate encode.

##### Declaration

    public FlateEncode(Filter input_filter, int compression_level)

##### Parameters

Type | Name | Description
--- | --- | ---
Filter | input_filter | the input_filter
int | compression_level | compression level

##### Exceptions

Type | Condition
--- | ---
PDFNetException | PDFNetException the PDFNet exception

#### FlateEncode(Filter, int, int)

Instantiates a new flate encode.

##### Declaration

    public FlateEncode(Filter input_filter, int compression_level, int buf_sz)

##### Parameters

Type | Name | Description
--- | --- | ---
Filter | input_filter | input filter
int | compression_level | compression level
int | buf_sz | size of buffer

##### Exceptions

Type | Condition
--- | ---
PDFNetException | PDFNetException the PDFNet exception

### Implements

IDisposable