summaryrefslogtreecommitdiff
path: root/source/tools/mutool.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-22 16:05:16 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-29 16:03:34 +0100
commit51422b7b07d708da2433f28a6c3c6547b0f5c319 (patch)
tree880ef52d1b84d0c3a84b3e1a59e1842343637e83 /source/tools/mutool.c
parente3829adb5b53800570ac750a9630b2f98a0d5211 (diff)
downloadmupdf-51422b7b07d708da2433f28a6c3c6547b0f5c319.tar.xz
js: Add "mutool run" tool to run javascript scripts.
Use an API similar to the JNI bindings.
Diffstat (limited to 'source/tools/mutool.c')
-rw-r--r--source/tools/mutool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/tools/mutool.c b/source/tools/mutool.c
index c662ffef..6d2cfa40 100644
--- a/source/tools/mutool.c
+++ b/source/tools/mutool.c
@@ -9,6 +9,7 @@
#endif
int mudraw_main(int argc, char *argv[]);
+int murun_main(int argc, char *argv[]);
int pdfclean_main(int argc, char *argv[]);
int pdfextract_main(int argc, char *argv[]);
int pdfinfo_main(int argc, char *argv[]);
@@ -23,6 +24,7 @@ static struct {
char *desc;
} tools[] = {
{ mudraw_main, "draw", "convert document" },
+ { murun_main, "run", "run javascript" },
{ pdfclean_main, "clean", "rewrite pdf file" },
{ pdfextract_main, "extract", "extract font and image resources" },
{ pdfinfo_main, "info", "show information about pdf resources" },