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

    Constructors
    Constructor
    Description
    Creates a new PdfOcrFontProvider instance with the default font and the default font family.
    PdfOcrFontProvider(com.itextpdf.layout.font.FontSet fontSet, String defaultFontFamily)
    Creates a new PdfOcrFontProvider instance based on provided FontSet instance and font family.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets default font family.

    Methods inherited from class com.itextpdf.layout.font.FontProvider

    addDirectory, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addFont, addStandardPdfFonts, addSystemFonts, createFontSelector, createFontSelectorStrategy, getDefaultCacheFlag, getDefaultEmbeddingFlag, getDefaultEncoding, getFontSelector, getFontSelector, getFontSet, getPdfFont, getPdfFont, reset, setFontSelectorStrategyFactory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PdfOcrFontProvider

      public PdfOcrFontProvider()
      Creates a new PdfOcrFontProvider instance with the default font and the default font family.
    • PdfOcrFontProvider

      public PdfOcrFontProvider (com.itextpdf.layout.font.FontSet fontSet, String defaultFontFamily)
      Creates a new PdfOcrFontProvider instance based on provided FontSet instance and font family.
      Parameters:
      fontSet - FontSet instance
      defaultFontFamily - font family
  • Method Details

    • getDefaultFontFamily

      public String getDefaultFontFamily()
      Gets default font family.
      Overrides:
      getDefaultFontFamily in class com.itextpdf.layout.font.FontProvider
      Returns:
      default font family as a string