Skip to main content
Version: Version 1.1.0

[SynthesisParamsForDocument] INI file section

The [SynthesisParamsForDocument] INI file section controls document synthesis, including structure detection, font formatting, and memory optimization during OCR processing.


Main settings

DetectDocumentStructure

KeyTypeDefault
DetectDocumentStructureBooleantrue

Controls whether Pdftools OCR Service analyzes the logical structure of the document (headings, table of contents, lists) during synthesis. When set to true, the [DocumentStructureDetectionParams] section provides additional configuration options for structure detection.


DetectFontFormatting

KeyTypeDefault
DetectFontFormattingBooleantrue

Controls whether Pdftools OCR Service identifies font formatting (bold, italic, font size) during document synthesis. When set to false, the [FontFormattingDetectionParams] section has no effect.

info

By default, font formatting is detected at the document synthesis stage. If you turn off this property, you must turn on font detection during page synthesis instead by setting DetectFontFormattingAtPageLevel to true in [SynthesisParamsForPage].

Moving font detection to page synthesis can reduce processing time and memory consumption during document synthesis, but may produce less accurate formatting results.


Additional settings

LowMemoryMode

KeyTypeDefault
LowMemoryModeBooleanfalse

When set to true, Pdftools OCR Service limits memory consumption to about 600 MB during document synthesis by reducing the number of pages held in memory at once. This can slow down processing and slightly reduce output quality.


PagePoolSize

KeyTypeDefault
PagePoolSizeInteger64

Sets the maximum number of pages that Pdftools OCR Service holds in memory during document synthesis. Increasing this value improves processing speed, while lowering it reduces memory usage. A range of 32–64 works well for most documents. For large documents, avoid setting this too high to prevent out-of-memory errors. Values under 5 have no effect.