Skip to main content

Module batch

Module batch 

Source
Expand description

Batch helpers for processing many PDFs with a bounded worker pool.

Structs§

BatchConfig
Configuration for process_batch and PdfBatch helpers.
BatchResult
Aggregated outcome of a batch run.
PdfBatch
Convenience helpers built on top of process_batch.

Enums§

ErrorStrategy
How batch processing should classify per-file failures.

Functions§

process_batch
Process a list of PDF paths with a fixed-size worker pool.
process_batch_with_page_progress
process_batch with a per-page progress callback, invoked as (done, total) with the current file’s page counts: a three-page file reports (1, 3) through (3, 3) once it has been read. It fires only for files that open and process successfully, from the worker thread; with several workers the files interleave. The per-file callback in BatchConfig::on_progress still fires as before.