2021-09-18 20:49:10 +00:00
|
|
|
diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
|
2022-02-13 22:16:45 +00:00
|
|
|
index 87e99fe..253a701 100644
|
2021-09-18 20:49:10 +00:00
|
|
|
--- a/src/pikepdf/_methods.py
|
|
|
|
+++ b/src/pikepdf/_methods.py
|
2021-11-11 23:07:53 +00:00
|
|
|
@@ -204,7 +204,7 @@ def _mudraw(buffer, fmt) -> bytes:
|
2021-09-18 20:49:10 +00:00
|
|
|
tmp_in.flush()
|
|
|
|
|
|
|
|
proc = run(
|
|
|
|
- ['mudraw', '-F', fmt, '-o', '-', tmp_in.name],
|
|
|
|
+ ['@mudraw@', '-F', fmt, '-o', '-', tmp_in.name],
|
2021-11-11 23:07:53 +00:00
|
|
|
capture_output=True,
|
2021-09-18 20:49:10 +00:00
|
|
|
check=True,
|
2021-11-11 23:07:53 +00:00
|
|
|
)
|
2021-09-18 20:49:10 +00:00
|
|
|
diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py
|
2022-02-13 22:16:45 +00:00
|
|
|
index 04c762d..924727c 100644
|
2021-09-18 20:49:10 +00:00
|
|
|
--- a/src/pikepdf/jbig2.py
|
|
|
|
+++ b/src/pikepdf/jbig2.py
|
2022-02-13 22:16:45 +00:00
|
|
|
@@ -26,7 +26,7 @@ def extract_jbig2(
|
2021-09-18 20:49:10 +00:00
|
|
|
output_path = Path(tmpdir) / "outfile"
|
|
|
|
|
2022-02-13 22:16:45 +00:00
|
|
|
args = [
|
|
|
|
- "jbig2dec",
|
|
|
|
+ "@jbig2dec@",
|
|
|
|
"--embedded",
|
|
|
|
"--format",
|
|
|
|
"png",
|
|
|
|
@@ -59,7 +59,7 @@ def extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes:
|
|
|
|
output_path = Path(tmpdir) / "outfile"
|
|
|
|
|
|
|
|
args = [
|
|
|
|
- "jbig2dec",
|
|
|
|
+ "@jbig2dec@",
|
|
|
|
"--embedded",
|
|
|
|
"--format",
|
|
|
|
"png",
|
|
|
|
@@ -84,7 +84,7 @@ def extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes:
|
2021-09-18 20:49:10 +00:00
|
|
|
|
2022-02-13 22:16:45 +00:00
|
|
|
def jbig2dec_available() -> bool:
|
|
|
|
try:
|
|
|
|
- proc = run(['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii')
|
|
|
|
+ proc = run(['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii')
|
|
|
|
except (CalledProcessError, FileNotFoundError):
|
|
|
|
return False
|
|
|
|
else:
|