MCPcopy Create free account
hub / github.com/docling-project/docling-parse / ThreadedPdfParserConfig

Class ThreadedPdfParserConfig

docling_parse/pdf_parser.py:1086–1104  ·  view source on GitHub ↗

Configuration for the threaded PDF parser. Attributes: loglevel: Logging level ('fatal', 'error', 'warning', 'info'). threads: Number of worker threads for parallel page decoding. max_concurrent_results: Maximum results buffered before workers pause. boundary_typ

Source from the content-addressed store, hash-verified

1084
1085
1086class ThreadedPdfParserConfig(BaseModel):
1087 """Configuration for the threaded PDF parser.
1088
1089 Attributes:
1090 loglevel: Logging level ('fatal', 'error', 'warning', 'info').
1091 threads: Number of worker threads for parallel page decoding.
1092 max_concurrent_results: Maximum results buffered before workers pause.
1093 boundary_type: Page boundary used for geometry conversion and page sizing.
1094 render_config: Optional render configuration for parse-and-render mode.
1095 """
1096
1097 model_config = ConfigDict(arbitrary_types_allowed=True)
1098
1099 loglevel: str = "fatal"
1100 threads: int = 4
1101 max_concurrent_results: int = 32
1102 boundary_type: PdfPageBoundaryType = PdfPageBoundaryType.CROP_BOX
1103 render_config: RenderConfig | None = None
1104 page_content_config: ContentConfig | None = None
1105
1106
1107class PageParseResult:

Callers 15

_runnerFunction · 0.90
run_threadedFunction · 0.90
exportFunction · 0.90
render_with_doclingFunction · 0.90
_make_parserFunction · 0.90
_make_parserFunction · 0.90

Calls

no outgoing calls