2021-09-22 15:38:15 +00:00
|
|
|
diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
|
2024-01-25 14:12:00 +00:00
|
|
|
index da40043f..4f566f01 100644
|
2021-09-22 15:38:15 +00:00
|
|
|
--- a/src/pikepdf/_methods.py
|
|
|
|
+++ b/src/pikepdf/_methods.py
|
2024-01-25 14:12:00 +00:00
|
|
|
@@ -74,7 +74,7 @@ def _mudraw(buffer, fmt) -> bytes:
|
2021-09-22 15:38:15 +00:00
|
|
|
tmp_in.flush()
|
|
|
|
|
|
|
|
proc = run(
|
2024-01-25 14:12:00 +00:00
|
|
|
- ['mutool', 'draw', '-F', fmt, '-o', '-', tmp_in.name],
|
|
|
|
+ ['@mutool@', 'draw', '-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
|
2024-05-15 15:35:15 +00:00
|
|
|
index 901f3b6f..45551820 100644
|
2021-09-22 15:38:15 +00:00
|
|
|
--- a/src/pikepdf/jbig2.py
|
|
|
|
+++ b/src/pikepdf/jbig2.py
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -72,7 +72,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
|
2024-01-13 08:15:51 +00:00
|
|
|
output_path = Path(tmpdir) / "outfile"
|
|
|
|
|
|
|
|
args = [
|
|
|
|
- "jbig2dec",
|
|
|
|
+ "@jbig2dec@",
|
|
|
|
"--embedded",
|
|
|
|
"--format",
|
|
|
|
"png",
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -101,7 +101,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
|
2022-09-30 11:47:45 +00:00
|
|
|
def _version(self) -> Version:
|
|
|
|
try:
|
2024-01-13 08:15:51 +00:00
|
|
|
proc = self._run(
|
2024-05-15 15:35:15 +00:00
|
|
|
- ['jbig2dec', '--version'],
|
|
|
|
+ ['@jbig2dec@', '--version'],
|
|
|
|
stdout=PIPE,
|
|
|
|
check=True,
|
|
|
|
encoding='ascii',
|