Class FilterHandlers


  • public final class FilterHandlers
    extends java.lang.Object
    Encapsulates filter behavior for PDF streams. Classes generally interace with this using the static getDefaultFilterHandlers() method, then obtain the desired FilterHandlers.FilterHandler via a lookup.
    Since:
    5.0.4
    • Constructor Detail

      • FilterHandlers

        public FilterHandlers()
    • Method Detail

      • enableMemoryLimitsAwareHandler

        public static java.io.ByteArrayOutputStream enableMemoryLimitsAwareHandler​(PdfDictionary streamDictionary)
        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 ByteArrayOutputStream which will be used for decompression of the passed pdf stream