iText 9.6.0 API
iText.Kernel.Pdf.Filters.BrotliFilter Class Reference

Filter implementation for decoding Brotli-compressed PDF streams. More...

Inheritance diagram for iText.Kernel.Pdf.Filters.BrotliFilter:
iText.Kernel.Pdf.MemoryLimitsAwareFilter iText.Kernel.Pdf.Filters.IFilterHandler

Public Member Functions

  BrotliFilter ()
  Constructs an empty BrotliFilter instance. More...
 
override byte[]  Decode (byte[] b, PdfName filterName, PdfObject decodeParams, PdfDictionary streamDictionary)
  Decodes Brotli-compressed data from a PDF stream. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.MemoryLimitsAwareFilter
virtual MemoryStream  EnableMemoryLimitsAwareHandler (PdfDictionary streamDictionary)
  Creates a MemoryLimitsAwareOutputStream which will be used for decompression of the passed pdf stream. More...
 

Detailed Description

Filter implementation for decoding Brotli-compressed PDF streams.

Filter implementation for decoding Brotli-compressed PDF streams. This filter supports optional Brotli dictionary streams and memory limits awareness.

Constructor & Destructor Documentation

◆ BrotliFilter()

iText.Kernel.Pdf.Filters.BrotliFilter.BrotliFilter ( )
inline

Constructs an empty BrotliFilter instance.

Member Function Documentation

◆ Decode()

override byte [] iText.Kernel.Pdf.Filters.BrotliFilter.Decode ( byte[]  b,
PdfName  filterName,
PdfObject  decodeParams,
PdfDictionary  streamDictionary 
)
inlinevirtual

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[]

Implements iText.Kernel.Pdf.MemoryLimitsAwareFilter.