Class BrotliFilter

java.lang.Object
com.itextpdf.kernel.pdf.MemoryLimitsAwareFilter
com.itextpdf.kernel.pdf.filters.BrotliFilter
All Implemented Interfaces:
IFilterHandler

public class BrotliFilter extends MemoryLimitsAwareFilter
Filter implementation for decoding Brotli-compressed PDF streams. This filter supports optional Brotli dictionary streams and memory limits awareness.
  • Constructor Details

    • BrotliFilter

      public BrotliFilter()
      Constructs an empty BrotliFilter instance.
  • Method Details

    • decode

      public byte[] decode (byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
      Decodes Brotli-compressed data from a PDF stream.
      Parameters:
      b - the bytes that need to be decoded
      filterName - PdfName of the filter (unused)
      decodeParams - decode parameters, may contain a Brotli dictionary stream under key 'D'
      streamDictionary - the dictionary of the stream. Can contain additional information needed to decode the byte[]
      Returns:
      the decoded byte[]
      Throws:
      PdfException - if decompression fails