diff --git a/src/ocrmypdf/_pipelines/common.py b/src/ocrmypdf/_pipelines/common.py index 41de222b..4b207b79 100644 --- a/src/ocrmypdf/_pipelines/common.py +++ b/src/ocrmypdf/_pipelines/common.py @@ -380,7 +380,7 @@ def process_page(page_context: PageContext) -> tuple[Path, Path | None, int]: return ocr_image_out, pdf_page_from_image_out, orientation_correction -def post_process( +def postprocess( pdf_file: Path, context: PdfContext, executor: Executor ) -> tuple[Path, Sequence[str]]: """Postprocess the PDF file.""" diff --git a/src/ocrmypdf/_pipelines/hocr_to_ocr_pdf.py b/src/ocrmypdf/_pipelines/hocr_to_ocr_pdf.py index 46657e26..6dd6501e 100644 --- a/src/ocrmypdf/_pipelines/hocr_to_ocr_pdf.py +++ b/src/ocrmypdf/_pipelines/hocr_to_ocr_pdf.py @@ -29,7 +29,7 @@ from ocrmypdf._pipeline import ( from ocrmypdf._pipelines.common import ( HOCRResult, manage_work_folder, - post_process, + postprocess, report_output_pdf, set_logging_tls, setup_pipeline, @@ -101,7 +101,7 @@ def exec_hocr_to_ocr_pdf(context: PdfContext, executor: Executor) -> Sequence[st if options.output_type != 'none': # PDF/A and metadata log.info("Postprocessing...") - pdf, messages = post_process(pdf, context, executor) + pdf, messages = postprocess(pdf, context, executor) # Copy PDF file to destination copy_final(pdf, options.output_file, context) diff --git a/src/ocrmypdf/_pipelines/standard.py b/src/ocrmypdf/_pipelines/standard.py index 7a5bf488..fd667bf6 100644 --- a/src/ocrmypdf/_pipelines/standard.py +++ b/src/ocrmypdf/_pipelines/standard.py @@ -37,7 +37,7 @@ from ocrmypdf._pipelines.common import ( cli_exception_handler, manage_debug_log_handler, manage_work_folder, - post_process, + postprocess, process_page, report_output_pdf, set_logging_tls, @@ -152,7 +152,7 @@ def exec_concurrent(context: PdfContext, executor: Executor) -> Sequence[str]: if options.output_type != 'none': # PDF/A and metadata log.info("Postprocessing...") - pdf, messages = post_process(pdf, context, executor) + pdf, messages = postprocess(pdf, context, executor) # Copy PDF file to destination copy_final(pdf, options.output_file, context)