summaryrefslogtreecommitdiff
path: root/apps/mupdfextract.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-05-11 14:51:11 +0200
committerTor Andersson <tor.andersson@artifex.com>2012-05-11 14:51:11 +0200
commite54d4225e2d16d2b5cc928294009fce0a5b30718 (patch)
tree1732eb253ecbcd8e72e5d13fc3062944a57d9627 /apps/mupdfextract.c
parent314c9ecaaba711741ecc5bb3e3e1e62655cee8c4 (diff)
downloadmupdf-e54d4225e2d16d2b5cc928294009fce0a5b30718.tar.xz
Split part of fz_document interface for pdf_document into separate file.
Make a separate constructor function that does not link in the interpreter, so we can save space in the mubusy binary by not including the font and cmap resources.
Diffstat (limited to 'apps/mupdfextract.c')
-rw-r--r--apps/mupdfextract.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/mupdfextract.c b/apps/mupdfextract.c
index a46e0d88..d1131f67 100644
--- a/apps/mupdfextract.c
+++ b/apps/mupdfextract.c
@@ -3,6 +3,7 @@
*/
#include "mupdf.h"
+#include "mupdf-internal.h"
static pdf_document *doc = NULL;
static fz_context *ctx = NULL;
@@ -170,7 +171,7 @@ int pdfextract_main(int argc, char **argv)
exit(1);
}
- doc = pdf_open_document(ctx, infile);
+ doc = pdf_open_document_no_run(ctx, infile);
if (pdf_needs_password(doc))
if (!pdf_authenticate_password(doc, password))
fz_throw(ctx, "cannot authenticate password: %s", infile);