Package com.itextpdf.pdfocr
Class PdfOcrFontProvider
java.lang.Object
com.itextpdf.layout.font.FontProvider
com.itextpdf.pdfocr.PdfOcrFontProvider
public class PdfOcrFontProvider extends com.itextpdf.layout.font.FontProvider
FontProvider
extension for ocr engine.
-
Field Summary
Fields inherited from class com.itextpdf.layout.font.FontProvider
defaultFontFamily, pdfFonts
-
Constructor Summary
ConstructorDescriptionCreates a newPdfOcrFontProvider
instance with the default font and the default font family.PdfOcrFontProvider
(com.itextpdf.layout.font.FontSet fontSet, String defaultFontFamily) Creates a newPdfOcrFontProvider
instance based on providedFontSet
instance and font family. -
Method Summary
Methods inherited from class com.itextpdf.layout.font.FontProvider
addDirectory, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addStandardPdfFonts, addSystemFonts, createFontSelector, getDefaultCacheFlag, getDefaultEmbeddingFlag, getDefaultEncoding, getFontSelector, getFontSelector, getFontSet, getPdfFont, getPdfFont, getStrategy, getStrategy, getStrategy, reset
-
Constructor Details
-
PdfOcrFontProvider
public PdfOcrFontProvider()Creates a newPdfOcrFontProvider
instance with the default font and the default font family. -
PdfOcrFontProvider
Creates a newPdfOcrFontProvider
instance based on providedFontSet
instance and font family.- Parameters:
-
fontSet
-FontSet
instance -
defaultFontFamily
- font family
-
-
Method Details
-
getDefaultFontFamily
Gets default font family.- Overrides:
-
getDefaultFontFamily
in classcom.itextpdf.layout.font.FontProvider
- Returns:
- default font family as a string
-