diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-11-13 13:27:30 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-11-13 21:27:06 +0100 |
commit | b35df4b2ae4a80c8f770335b813e5cd3203c175b (patch) | |
tree | 9ed6b381d3aa039cfb94613b9b7162cb49602520 /source/tools | |
parent | 9a8a3fe5e1d3e319559fd0bde2bc40bc47ee01bd (diff) | |
download | mupdf-b35df4b2ae4a80c8f770335b813e5cd3203c175b.tar.xz |
Use fz_image.imagemask field when adding PDF image resources.
Don't pass the information as a separate argument.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/murun.c | 2 | ||||
-rw-r--r-- | source/tools/pdfcreate.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index 33bdd8f4..d122ce51 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -3283,7 +3283,7 @@ static void ffi_PDFDocument_addImage(js_State *J) pdf_obj *ind = NULL; fz_try(ctx) - ind = pdf_add_image(ctx, pdf, image, 0); + ind = pdf_add_image(ctx, pdf, image); fz_catch(ctx) rethrow(J); diff --git a/source/tools/pdfcreate.c b/source/tools/pdfcreate.c index 043936e4..b0f1c0a3 100644 --- a/source/tools/pdfcreate.c +++ b/source/tools/pdfcreate.c @@ -120,7 +120,7 @@ static void add_image_res(pdf_obj *resources, char *name, char *path) pdf_dict_put_drop(ctx, resources, PDF_NAME(XObject), subres); } - ref = pdf_add_image(ctx, doc, image, 0); + ref = pdf_add_image(ctx, doc, image); pdf_dict_puts(ctx, subres, name, ref); pdf_drop_obj(ctx, ref); |