FilterType

Backed enum of the standard PDF stream filters (PDF 32000-1:2008 §7.4). The backing value of each case is the PDF filter name.

Namespace: Com\Tecnick\Pdf\Filter

Backing type: string

File: FilterType.php line 37

Backed enum of the standard PDF stream filters (PDF 32000-1:2008 §7.4). The backing value of each case is the PDF filter name.

Tags

Cases

AsciiHexDecode

File: FilterType.php line 39

Ascii85Decode

File: FilterType.php line 41

LzwDecode

File: FilterType.php line 43

FlateDecode

File: FilterType.php line 45

RunLengthDecode

File: FilterType.php line 47

CcittFaxDecode

File: FilterType.php line 49

Jbig2Decode

File: FilterType.php line 51

DctDecode

File: FilterType.php line 53

JpxDecode

File: FilterType.php line 55

Crypt

File: FilterType.php line 57

Methods

fromLoose()

File: FilterType.php line 71

public static fromLoose(string|self $value) : self

Accepts an enum case (returned unchanged), the PDF filter name, the inline-image abbreviation (PDF 32000-1:2008 Table 93), and either name written with the leading solidus of a PDF name object. Names are case-sensitive.

Parameters

  • $value : string|self: PDF filter name or enum case.

Tags

  • throws: Exception if the value does not match a known PDF filter.

Return values

self