[FontFormattingDetectionParams] INI file section
The [FontFormattingDetectionParams] INI file section defines parameters for detecting font formatting and typographic attributes such as bold, italics, font family, size, and spacing during OCR text synthesis.
Text decoration
DetectBold
| Key | Type | Default |
|---|---|---|
DetectBold | Boolean | true |
When set to true, bold formatting is identified during synthesis.
DetectItalic
| Key | Type | Default |
|---|---|---|
DetectItalic | Boolean | true |
When set to true, italic formatting is identified during synthesis.
DetectSubscriptsSuperscripts
| Key | Type | Default |
|---|---|---|
DetectSubscriptsSuperscripts | Boolean | true |
When set to true, subscript and superscript text is identified during synthesis.
DetectUnderlineStrikeout
| Key | Type | Default |
|---|---|---|
DetectUnderlineStrikeout | Boolean | true |
When set to true, underlined and struck-through text is identified during synthesis.
DetectSmallCaps
| Key | Type | Default |
|---|---|---|
DetectSmallCaps | Boolean | true |
When set to true, small capitals are identified during synthesis.
DetectDropCaps
| Key | Type | Default |
|---|---|---|
DetectDropCaps | Boolean | true |
When set to true, enlarged initial letters (drop caps) are identified during synthesis.
Font attributes
DetectFontFamily
| Key | Type | Default |
|---|---|---|
DetectFontFamily | Boolean | true |
When set to true, the font family is identified during synthesis.
DetectFontSize
| Key | Type | Default |
|---|---|---|
DetectFontSize | Boolean | true |
When set to true, the font size is identified during synthesis.
DetectSerifs
| Key | Type | Default |
|---|---|---|
DetectSerifs | Boolean | true |
When set to true, Pdftools OCR Service distinguishes between serif and sans-serif typefaces during synthesis and selects the matching font category for the output text. When set to false, this distinction is ignored and the best-fitting font is chosen regardless of whether the original text uses a serif or sans-serif typeface.
Scaling and spacing
DetectScaling
| Key | Type | Default |
|---|---|---|
DetectScaling | Boolean | true |
When set to true, character scaling (horizontal stretch or compression) is identified during synthesis.
DetectSpacing
| Key | Type | Default |
|---|---|---|
DetectSpacing | Boolean | false |
When set to true, character spacing is identified during synthesis.
MonospaceDetectionMode
| Key | Type | Default |
|---|---|---|
MonospaceDetectionMode | MonospaceDetectionModeEnum | MDM_Auto |
Controls how monospace fonts are handled during synthesis.
MonospaceDetectionModeEnum
MDM_Auto: Automatically determines whether the text uses a monospace font.MDM_Ignore: Skips monospace detection entirely.MDM_Monospace: Treats all output text as monospace.MDM_NotMonospace: Treats all output text as proportional (non-monospace).