summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-12-17 22:38:35 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-12-18 15:32:14 +0100
commit80949d3d6b6320f5643a450c382f19370922e78f (patch)
tree7e3a6612d9c2985c3c3c493182d4171d017b4456 /platform/android
parent02d5b2280db2846e4a683944819eb395ab15b8ce (diff)
downloadmupdf-80949d3d6b6320f5643a450c382f19370922e78f.tar.xz
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.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/jni/mupdf.c7
1 files changed, 4 insertions, 3 deletions
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;
}
}