Class UsedGlyphsFinder
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontsubsetting.UsedGlyphsFinder
This class is used to find set of glyphs used in document for each font.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Stores set of font used glyphs and also auxilary data about extracted glyphs. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindUsedGlyphsInFonts
(com.itextpdf.kernel.pdf.PdfDocument document, OptimizationSession session) Process content streams to find glyphs used in document.
-
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
-