PDFsharp-net6

Filtering

Namespace: PdfSharp.Pdf.Filters

Applies standard filters to streams.

public static class Filtering

Inheritance ObjectFiltering

Properties

AsciiHexDecode

Gets the filter singleton.

public static AsciiHexDecode AsciiHexDecode { get; }

Property Value

AsciiHexDecode

Ascii85Decode

Gets the filter singleton.

public static Ascii85Decode Ascii85Decode { get; }

Property Value

Ascii85Decode

LzwDecode

Gets the filter singleton.

public static LzwDecode LzwDecode { get; }

Property Value

LzwDecode

FlateDecode

Gets the filter singleton.

public static FlateDecode FlateDecode { get; }

Property Value

FlateDecode

DctDecode

Gets the filter singleton.

public static DctDecode DctDecode { get; }

Property Value

DctDecode

Methods

GetFilter(String)

Gets the filter specified by the case sensitive name.

public static Filter GetFilter(string filterName)

Parameters

filterName String

Returns

Filter

Encode(Byte[], String)

Encodes the data with the specified filter.

public static Byte[] Encode(Byte[] data, string filterName)

Parameters

data Byte[]

filterName String

Returns

Byte[]

Encode(String, String)

Encodes a raw string with the specified filter.

public static Byte[] Encode(string rawString, string filterName)

Parameters

rawString String

filterName String

Returns

Byte[]

Decode(Byte[], String, FilterParms)

Decodes the data with the specified filter.

public static Byte[] Decode(Byte[] data, string filterName, FilterParms parms)

Parameters

data Byte[]

filterName String

parms FilterParms

Returns

Byte[]

Decode(Byte[], String)

Decodes the data with the specified filter.

public static Byte[] Decode(Byte[] data, string filterName)

Parameters

data Byte[]

filterName String

Returns

Byte[]

Decode(Byte[], PdfItem, PdfItem)

Decodes the data with the specified filter.

public static Byte[] Decode(Byte[] data, PdfItem filterItem, PdfItem decodeParms)

Parameters

data Byte[]

filterItem PdfItem

decodeParms PdfItem

Returns

Byte[]

DecodeToString(Byte[], String, FilterParms)

Decodes to a raw string with the specified filter.

public static string DecodeToString(Byte[] data, string filterName, FilterParms parms)

Parameters

data Byte[]

filterName String

parms FilterParms

Returns

String

DecodeToString(Byte[], String)

Decodes to a raw string with the specified filter.

public static string DecodeToString(Byte[] data, string filterName)

Parameters

data Byte[]

filterName String

Returns

String