CCITTFaxFilter
in package
implements
FilterInterface
FinalYes
CCITTFaxDecode filter — ITU-T T.4 (Group 3) and T.6 (Group 4) fax codec.
Encodes/decodes CCITT fax-compressed bitonal image data to/from raw uncompressed pixel rows (1 bit per pixel, rows padded to byte boundaries).
Parameters match PDF spec ISO 32000-2 §7.4.6, Table 11: K: <0 = Group 4, 0 = Group 3 (1D), >0 = mixed 1D/2D Columns: image width in pixels (default 1728) Rows: image height (0 = determined by EOB/data) EndOfLine: require EOL codes (default false) EncodedByteAlign: align rows to byte boundary (default false) EndOfBlock: use EOFB/RTC codes (default true) BlackIs1: if true, 1=black; if false, 0=black (default false)
Tags
Table of Contents
Interfaces
- FilterInterface
- Symmetric encode/decode contract for PDF stream filters (ISO 32000-2 §7.4).
Methods
- __construct() : mixed
- decode() : string
- encode() : string
Methods
__construct()
public
__construct([int $k = 0 ][, int $columns = 1728 ][, int $rows = 0 ][, bool $endOfLine = false ][, bool $encodedByteAlign = false ][, bool $endOfBlock = true ][, bool $blackIs1 = false ]) : mixed
Parameters
- $k : int = 0
- $columns : int = 1728
- $rows : int = 0
- $endOfLine : bool = false
- $encodedByteAlign : bool = false
- $endOfBlock : bool = true
- $blackIs1 : bool = false
decode()
public
decode(string $data) : string
Parameters
- $data : string
Return values
stringencode()
public
encode(string $data) : string
Parameters
- $data : string