decode

fun decode(input: ByteArray, k: Int, options: CcittOptions): ByteArray(source)

Decode with the mode selection PDF's /K uses: negative = pure 2D (Group 4, T.6), zero = pure 1D (Group 3, T.4), positive = mixed 1D/2D (Group 3, T.4). Positive values share the per-row mode-tag interpretation specified by PDF; their numerical cadence is not enforced.

Throws

if CcittOptions.columns is outside 1 to 2^24, if CcittOptions.rows is negative, the decoded image would pass 2^28 pixels, or a Group 3 row is invalid or incomplete