7c5d163edf
While technically an optional dependency, this is effectively required for many operations. See e.g. https://github.com/NixOS/nixpkgs/issues/362939 It not only needs the Python library, but also the path to `gs` patched in and it tricked into assuming that Ghostscript is available (because it is but it thinks it is not).
14 lines
463 B
Diff
14 lines
463 B
Diff
diff --git a/camelot/backends/ghostscript_backend.py b/camelot/backends/ghostscript_backend.py
|
|
index 1de7da1..1179e87 100644
|
|
--- a/camelot/backends/ghostscript_backend.py
|
|
+++ b/camelot/backends/ghostscript_backend.py
|
|
@@ -36,7 +36,7 @@ def convert(self, pdf_path, png_path, resolution=300):
|
|
import ghostscript
|
|
|
|
gs_command = [
|
|
- "gs",
|
|
+ "@ghostscript@",
|
|
"-q",
|
|
"-sDEVICE=png16m",
|
|
"-o",
|