iText 7 7.1.9 API
iText.Kernel.Pdf.MemoryLimitsAwareFilter Class Referenceabstract

Handles memory limits aware processing. More...

Inheritance diagram for iText.Kernel.Pdf.MemoryLimitsAwareFilter:
iText.Kernel.Pdf.Filters.IFilterHandler iText.Kernel.Pdf.Filters.ASCII85DecodeFilter iText.Kernel.Pdf.Filters.ASCIIHexDecodeFilter iText.Kernel.Pdf.Filters.FlateDecodeFilter iText.Kernel.Pdf.Filters.LZWDecodeFilter iText.Kernel.Pdf.Filters.RunLengthDecodeFilter iText.Kernel.Pdf.Filters.FlateDecodeStrictFilter

Public Member Functions

virtual MemoryStream  EnableMemoryLimitsAwareHandler (PdfDictionary streamDictionary)
  Creates a MemoryLimitsAwareOutputStream which will be used for decompression of the passed pdf stream. More...
 
abstract byte[]  Decode (byte[] arg1, PdfName arg2, PdfObject arg3, PdfDictionary arg4)
  Decode the byte[] using the provided filterName. More...
 

Detailed Description

Handles memory limits aware processing.

See also
MemoryLimitsAwareHandler

Member Function Documentation

◆ Decode()

abstract byte [] iText.Kernel.Pdf.MemoryLimitsAwareFilter.Decode ( byte[]  b,
PdfName  filterName,
PdfObject  decodeParams,
PdfDictionary  streamDictionary 
)
pure virtual

Decode the byte[] using the provided filterName.

Parameters
b the bytes that need to be decoded
filterName PdfName of the filter
decodeParams decode parameters
streamDictionary the dictionary of the stream. Can contain additional information needed to decode the byte[].
Returns
decoded byte array

Implements iText.Kernel.Pdf.Filters.IFilterHandler.

Implemented in iText.Kernel.Pdf.Filters.FlateDecodeFilter, iText.Kernel.Pdf.Filters.ASCII85DecodeFilter, iText.Kernel.Pdf.Filters.ASCIIHexDecodeFilter, iText.Kernel.Pdf.Filters.FlateDecodeStrictFilter, iText.Kernel.Pdf.Filters.LZWDecodeFilter, and iText.Kernel.Pdf.Filters.RunLengthDecodeFilter.

◆ EnableMemoryLimitsAwareHandler()

virtual MemoryStream iText.Kernel.Pdf.MemoryLimitsAwareFilter.EnableMemoryLimitsAwareHandler ( PdfDictionary  streamDictionary )
inlinevirtual

Creates a MemoryLimitsAwareOutputStream which will be used for decompression of the passed pdf stream.

Parameters
streamDictionary the pdf stream which is going to be decompressed.
Returns
the System.IO.MemoryStream which will be used for decompression of the passed pdf stream