From 1f913dcbca84e327977d633a985ad6bdb92f7804 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 8 Apr 2015 15:54:05 +0200 Subject: 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. --- source/tools/pdfextract.c | 2 +- source/tools/pdfinfo.c | 2 +- source/tools/pdfpages.c | 2 +- source/tools/pdfposter.c | 2 +- source/tools/pdfshow.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source/tools') 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); -- cgit v1.2.3