[gs-commits] mupdf 1.16.0.8 Fix wasm and android builds.

[email protected] (Tor Andersson)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
commit 852deec56e3a854ea8e794558aa7a4cc71f66287
Author: Tor Andersson <[email protected]>
Date:   Fri Aug 2 11:11:58 2019 +0200

    Fix wasm and android builds.

diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index d3339a1..6bec80f 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -5875,7 +5875,7 @@ FUN(Page_textAsHtml)(JNIEnv *env, jobject self)
 		buf = fz_new_buffer(ctx, 256);
 		out = fz_new_output_with_buffer(ctx, buf);
 		fz_print_stext_header_as_html(ctx, out);
-		fz_print_stext_page_as_html(ctx, out, text);
+		fz_print_stext_page_as_html(ctx, out, text, page->number);
 		fz_print_stext_trailer_as_html(ctx, out);
 		fz_close_output(ctx, out);
 	}
diff --git a/platform/wasm/wrap.c b/platform/wasm/wrap.c
index d2a3379..cc8cf4a 100644
--- a/platform/wasm/wrap.c
+++ b/platform/wasm/wrap.c
@@ -62,7 +62,7 @@ char *drawPageAsHTML(fz_document *doc, int number)
 		out = fz_new_output_with_buffer(ctx, buf);
 		{
 			text = fz_new_stext_page_from_page(ctx, lastPage, NULL);
-			fz_print_stext_page_as_html(ctx, out, text);
+			fz_print_stext_page_as_html(ctx, out, text, number);
 			fz_drop_stext_page(ctx, text);
 		}
 		fz_write_byte(ctx, out, 0);

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=852deec56e3a854ea8e794558aa7a4cc71f66287

--
MuPDF library
Artifex Software, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.