- Call js scripts like this:
mutool run scripts/<script.js> <input.pdf> <output.pdf>
(requires installingmupdf
(https://mupdf.com/)) - Python scripts require installing
pymupdf
, then run like this:script.py <input.pdf> <output.pdf>
mutool run scripts/<script.js> <input.pdf> <output.pdf>
(requires installing mupdf
(https://mupdf.com/))pymupdf
, then run like this: script.py <input.pdf> <output.pdf>