pdf-lite - v1.0.1
    Preparing search index...

    Function runLength

    • 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.

      Returns PdfFilter

      A PdfFilter object with encode and decode methods.

      const filter = runLength()
      const compressed = filter.encode(rawData)
      const decompressed = filter.decode(compressed)