Skip to main content
Version: Version 1.0.0

[SynthesisParamsForDocument] INI file section

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


Main settings

DetectDocumentStructure

KeyTypeDefault
DetectDocumentStructureBooleantrue

Specifies whether document structure detection should be performed while document synthesis.


DetectFontFormatting

KeyTypeDefault
DetectFontFormattingBooleantrue

Specifies whether font formatting detection should be performed while document synthesis. If this property is set to false, the [FontFormattingDetectionParams] section is ignored. If you set the value of this property to false, you must turn on detection of font parameters during page synthesis. To do this, set the DetectFontFormattingAtPageLevel property in the [SynthesisParamsForPage] INI file section to true. Detection of font parameters during page synthesis enables the program to speed up the subsequent document synthesis and decrease memory usage. However, the quality of font detection may deteriorate.


Additional settings

LowMemoryMode

KeyTypeDefault
LowMemoryModeBooleanfalse

Specifies whether low memory mode should be used during document synthesis. If you set this property to true, Pdftools OCR Service tries to use no more than 600 Mb of memory during document synthesis by simultaneously loading fewer pages to memory. However, document synthesis may slow down the processing and the quality may slightly deteriorate.


PagePoolSize

PagePoolSizeTypeDefault
PagePoolSizeInteger64

Specifies how many pages may be loaded by document synthesis simultaneously. This property allows you to decrease memory usage. We recommend using a value between 32 and 64. The higher the value, the faster the processing. However, for processing big documents, it is not recommended to use the highest values of this property, as this may lead to an out-of-memory error. The value less than 5 is ignored.