From dbf6a3edfd45d3fd55a85fd416779fde6a22b5f0 Mon Sep 17 00:00:00 2001 From: echedey-ls <80125792+echedey-ls@users.noreply.github.com> Date: Sat, 28 Oct 2023 13:17:36 +0200 Subject: [PATCH] Add `gswin64c` as another possible GS executable --- pdfplumber/repair.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdfplumber/repair.py b/pdfplumber/repair.py index a7a7b90..af0f132 100644 --- a/pdfplumber/repair.py +++ b/pdfplumber/repair.py @@ -11,7 +11,8 @@ def _repair( gs_path: Optional[Union[str, pathlib.Path]] = None, ) -> BytesIO: - executable = gs_path or shutil.which("gs") or shutil.which("gswin32c") + executable = (gs_path or shutil.which("gs") or shutil.which("gswin32c") + or shutil.which("gswin64c")) if executable is None: # pragma: nocover raise Exception( "Cannot find Ghostscript, which is required for repairs.\n"