summaryrefslogtreecommitdiff
path: root/source/tools
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-04-08 15:54:05 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-04-09 12:09:15 +0200
commit1f913dcbca84e327977d633a985ad6bdb92f7804 (patch)
tree72d88a82361e71f0fab8b37e813a8bc3f8c8524a /source/tools
parentaae4d9682f33187adc9dfe480fb83c05955afebe (diff)
downloadmupdf-1f913dcbca84e327977d633a985ad6bdb92f7804.tar.xz
Remove the _no_run functions.
The new pdfclean sanitize functionality mean that mutool now needs the data files, so maintaining the split that was designed to keep data files out of mutool is no longer viable.
Diffstat (limited to 'source/tools')
-rw-r--r--source/tools/pdfextract.c2
-rw-r--r--source/tools/pdfinfo.c2
-rw-r--r--source/tools/pdfpages.c2
-rw-r--r--source/tools/pdfposter.c2
-rw-r--r--source/tools/pdfshow.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c
index b2491f0b..7e454fc7 100644
--- a/source/tools/pdfextract.c
+++ b/source/tools/pdfextract.c
@@ -209,7 +209,7 @@ int pdfextract_main(int argc, char **argv)
exit(1);
}
- doc = pdf_open_document_no_run(ctx, infile);
+ doc = pdf_open_document(ctx, infile);
if (pdf_needs_password(ctx, doc))
if (!pdf_authenticate_password(ctx, doc, password))
fz_throw(ctx, FZ_ERROR_GENERIC, "cannot authenticate password: %s", infile);
diff --git a/source/tools/pdfinfo.c b/source/tools/pdfinfo.c
index af0f9340..4f370f16 100644
--- a/source/tools/pdfinfo.c
+++ b/source/tools/pdfinfo.c
@@ -1007,7 +1007,7 @@ pdfinfo_info(fz_context *ctx, fz_output *out, char *filename, char *password, in
filename = argv[argidx];
fz_printf(ctx, out, "%s:\n", filename);
- glo.doc = pdf_open_document_no_run(glo.ctx, filename);
+ glo.doc = pdf_open_document(glo.ctx, filename);
if (pdf_needs_password(ctx, glo.doc))
if (!pdf_authenticate_password(ctx, glo.doc, password))
fz_throw(glo.ctx, FZ_ERROR_GENERIC, "cannot authenticate password: %s", filename);
diff --git a/source/tools/pdfpages.c b/source/tools/pdfpages.c
index e1185bfc..a0f04e7d 100644
--- a/source/tools/pdfpages.c
+++ b/source/tools/pdfpages.c
@@ -182,7 +182,7 @@ pdfpages_pages(fz_context *ctx, fz_output *out, char *filename, char *password,
filename = argv[argidx];
fz_printf(ctx, out, "%s:\n", filename);
- doc = pdf_open_document_no_run(ctx, filename);
+ doc = pdf_open_document(ctx, filename);
if (pdf_needs_password(ctx, doc))
if (!pdf_authenticate_password(ctx, doc, password))
fz_throw(ctx, FZ_ERROR_GENERIC, "cannot authenticate password: %s", filename);
diff --git a/source/tools/pdfposter.c b/source/tools/pdfposter.c
index 8aec6d2d..1fa077c2 100644
--- a/source/tools/pdfposter.c
+++ b/source/tools/pdfposter.c
@@ -159,7 +159,7 @@ int pdfposter_main(int argc, char **argv)
exit(1);
}
- doc = pdf_open_document_no_run(ctx, infile);
+ doc = pdf_open_document(ctx, infile);
if (pdf_needs_password(ctx, doc))
if (!pdf_authenticate_password(ctx, doc, password))
fz_throw(ctx, FZ_ERROR_GENERIC, "cannot authenticate password: %s", infile);
diff --git a/source/tools/pdfshow.c b/source/tools/pdfshow.c
index 9e656e2d..f2b01daa 100644
--- a/source/tools/pdfshow.c
+++ b/source/tools/pdfshow.c
@@ -257,7 +257,7 @@ int pdfshow_main(int argc, char **argv)
fz_var(doc);
fz_try(ctx)
{
- doc = pdf_open_document_no_run(ctx, filename);
+ doc = pdf_open_document(ctx, filename);
if (pdf_needs_password(ctx, doc))
if (!pdf_authenticate_password(ctx, doc, password))
fz_warn(ctx, "cannot authenticate password: %s", filename);