2021-09-22 15:38:15 +00:00
|
|
|
diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
|
2022-07-14 12:49:19 +00:00
|
|
|
index 2a170c6..5ee3ba1 100644
|
2021-09-22 15:38:15 +00:00
|
|
|
--- a/src/pikepdf/_methods.py
|
|
|
|
+++ b/src/pikepdf/_methods.py
|
2022-07-14 12:49:19 +00:00
|
|
|
@@ -80,7 +80,7 @@ def _mudraw(buffer, fmt) -> bytes:
|
2021-09-22 15:38:15 +00:00
|
|
|
tmp_in.flush()
|
|
|
|
|
|
|
|
proc = run(
|
|
|
|
- ['mudraw', '-F', fmt, '-o', '-', tmp_in.name],
|
|
|
|
+ ['@mudraw@', '-F', fmt, '-o', '-', tmp_in.name],
|
2021-12-06 16:07:01 +00:00
|
|
|
capture_output=True,
|
2021-09-22 15:38:15 +00:00
|
|
|
check=True,
|
2021-12-06 16:07:01 +00:00
|
|
|
)
|
2021-09-22 15:38:15 +00:00
|
|
|
diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py
|
2022-07-14 12:49:19 +00:00
|
|
|
index be390a1..3818ec3 100644
|
2021-09-22 15:38:15 +00:00
|
|
|
--- a/src/pikepdf/jbig2.py
|
|
|
|
+++ b/src/pikepdf/jbig2.py
|
2022-07-14 12:49:19 +00:00
|
|
|
@@ -31,7 +31,7 @@ def extract_jbig2(
|
2021-09-22 15:38:15 +00:00
|
|
|
output_path = Path(tmpdir) / "outfile"
|
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
args = [
|
|
|
|
- "jbig2dec",
|
|
|
|
+ "@jbig2dec@",
|
|
|
|
"--embedded",
|
|
|
|
"--format",
|
|
|
|
"png",
|
2022-07-14 12:49:19 +00:00
|
|
|
@@ -64,7 +64,7 @@ def _extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes:
|
2022-02-21 08:47:16 +00:00
|
|
|
output_path = Path(tmpdir) / "outfile"
|
|
|
|
|
|
|
|
args = [
|
|
|
|
- "jbig2dec",
|
|
|
|
+ "@jbig2dec@",
|
|
|
|
"--embedded",
|
|
|
|
"--format",
|
|
|
|
"png",
|
2022-07-14 12:49:19 +00:00
|
|
|
@@ -100,7 +100,7 @@ def extract_jbig2_bytes(
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
def _check_jbig2dec_available() -> None: # pragma: no cover
|
2022-02-21 08:47:16 +00:00
|
|
|
try:
|
|
|
|
- proc = run(['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii')
|
|
|
|
+ proc = run(['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii')
|
2022-07-14 12:49:19 +00:00
|
|
|
except (CalledProcessError, FileNotFoundError) as e:
|
|
|
|
raise DependencyError("jbig2dec - not installed or not found") from e
|
2022-02-21 08:47:16 +00:00
|
|
|
else:
|