From f974e3b3c1b7f695858414a0c7a451ea2deef436 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 22 Jul 2024 14:56:03 -0700 Subject: [PATCH] ghostscript: change input filename order for 10.03.1 Ghostscript now expects the pdfa.ps file to precede other files. Fixes #1359. --- src/ocrmypdf/builtin_plugins/ghostscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocrmypdf/builtin_plugins/ghostscript.py b/src/ocrmypdf/builtin_plugins/ghostscript.py index 5da9472d0..8d2f3ec63 100644 --- a/src/ocrmypdf/builtin_plugins/ghostscript.py +++ b/src/ocrmypdf/builtin_plugins/ghostscript.py @@ -129,7 +129,7 @@ def generate_pdfa( ): """Generate a PDF/A from the list of PDF pages and PDF/A metadata.""" ghostscript.generate_pdfa( - pdf_pages=[*pdf_pages, pdfmark], + pdf_pages=[pdfmark, *pdf_pages], output_file=output_file, compression=context.options.pdfa_image_compression, color_conversion_strategy=context.options.color_conversion_strategy,