Class UsedGlyphsFinder

java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontsubsetting.UsedGlyphsFinder

public class UsedGlyphsFinder extends Object
This class is used to find set of glyphs used in document for each font.
  • Constructor Details

    • UsedGlyphsFinder

      public UsedGlyphsFinder()
      No param constructor.
  • Method Details

    • findUsedGlyphsInFonts

      public MapUsedGlyphsFinder.FontGlyphs> findUsedGlyphsInFonts (com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session)
      Process content streams to find glyphs used in document.
      Parameters:
      document - document to find used glyphs
      session - for store objects used during glyphs finding
      Returns:
      a map where the key is the font and the value is a set of used glyphs