Table of Contents

Interface IFilter

Namespace
UglyToad.PdfPig.Filters
Assembly
UglyToad.PdfPig.dll

A filter is used in a PDF to encode/decode data either to compress it or derive an ASCII representation of the data.

public interface IFilter

Properties

IsSupported

Whether this library can decode information encoded using this filter.

bool IsSupported { get; }

Property Value

bool

Methods

Decode(IReadOnlyList<byte>, DictionaryToken, int)

Decodes data encoded using this filter type.

byte[] Decode(IReadOnlyList<byte> input, DictionaryToken streamDictionary, int filterIndex)

Parameters

input IReadOnlyList<byte>

The encoded bytes which were encoded using this filter.

streamDictionary DictionaryToken

The dictionary of the StreamToken (or other dictionary types, e.g. inline images) containing these bytes.

filterIndex int

The position of this filter in the pipeline used to encode data.

Returns

byte[]

The decoded bytes.