From 80949d3d6b6320f5643a450c382f19370922e78f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 17 Dec 2015 22:38:35 +0100 Subject: Remove fz_save_document and use pdf_save_document directly instead. In preparation of adding pdf_write_document that writes a document to a fz_output stream. --- platform/android/jni/mupdf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'platform/android') diff --git a/platform/android/jni/mupdf.c b/platform/android/jni/mupdf.c index b927bd57..e91eea70 100644 --- a/platform/android/jni/mupdf.c +++ b/platform/android/jni/mupdf.c @@ -2593,11 +2593,12 @@ JNI_FN(MuPDFCore_saveInternal)(JNIEnv * env, jobject thiz) { globals *glo = get_globals(env, thiz); fz_context *ctx = glo->ctx; + pdf_document *idoc = pdf_specifics(ctx, glo->doc); - if (glo->doc && glo->current_path) + if (idoc && glo->current_path) { char *tmp; - fz_save_options opts; + pdf_write_options opts; opts.do_incremental = 1; opts.do_ascii = 0; opts.do_expand = 0; @@ -2631,7 +2632,7 @@ JNI_FN(MuPDFCore_saveInternal)(JNIEnv * env, jobject thiz) if (!err) { - fz_save_document(ctx, glo->doc, tmp, &opts); + pdf_save_document(ctx, idoc, tmp, &opts); written = 1; } } -- cgit v1.2.3