Creates a Run-Length filter for encoding and decoding PDF stream data. Run-Length encoding is a simple compression algorithm that replaces sequences of repeated bytes with a count and the byte value.
A PdfFilter object with encode and decode methods.
const filter = runLength()const compressed = filter.encode(rawData)const decompressed = filter.decode(compressed) Copy
const filter = runLength()const compressed = filter.encode(rawData)const decompressed = filter.decode(compressed)
Creates a Run-Length filter for encoding and decoding PDF stream data. Run-Length encoding is a simple compression algorithm that replaces sequences of repeated bytes with a count and the byte value.