diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-01 15:30:07 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-01 21:57:41 +0100 |
commit | ed08eb1f0e4d3fd49181343f5cd3d63f455cbe51 (patch) | |
tree | c8dffaaf86a2dcd732ba884e4580c65a65474af6 /source/tools | |
parent | a59f0649377db57cf7874cfd9eb6943a9f9b58d5 (diff) | |
download | mupdf-ed08eb1f0e4d3fd49181343f5cd3d63f455cbe51.tar.xz |
Rename pdf_close_document to pdf_drop_document.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/mudraw.c | 2 | ||||
-rw-r--r-- | source/tools/pdfcreate.c | 2 | ||||
-rw-r--r-- | source/tools/pdfextract.c | 2 | ||||
-rw-r--r-- | source/tools/pdfinfo.c | 2 | ||||
-rw-r--r-- | source/tools/pdfpages.c | 4 | ||||
-rw-r--r-- | source/tools/pdfposter.c | 2 | ||||
-rw-r--r-- | source/tools/pdfshow.c | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index da9d7d0f..56bf0f8d 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -1134,7 +1134,7 @@ int mudraw_main(int argc, char **argv) if (!output) output = "out.pdf"; pdf_save_document(ctx, pdfout, output, NULL); - pdf_close_document(ctx, pdfout); + pdf_drop_document(ctx, pdfout); } if (output_format == OUT_HTML) diff --git a/source/tools/pdfcreate.c b/source/tools/pdfcreate.c index f8e301a3..47572d7d 100644 --- a/source/tools/pdfcreate.c +++ b/source/tools/pdfcreate.c @@ -178,7 +178,7 @@ int pdfcreate_main(int argc, char **argv) pdf_save_document(ctx, doc, output, &opts); - pdf_close_document(ctx, doc); + pdf_drop_document(ctx, doc); fz_flush_warnings(ctx); fz_drop_context(ctx); diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c index e867ca04..74b3654e 100644 --- a/source/tools/pdfextract.c +++ b/source/tools/pdfextract.c @@ -229,7 +229,7 @@ int pdfextract_main(int argc, char **argv) } } - pdf_close_document(ctx, doc); + pdf_drop_document(ctx, doc); fz_flush_warnings(ctx); fz_drop_context(ctx); return 0; diff --git a/source/tools/pdfinfo.c b/source/tools/pdfinfo.c index 6133e7f5..da500f04 100644 --- a/source/tools/pdfinfo.c +++ b/source/tools/pdfinfo.c @@ -147,7 +147,7 @@ static void closexref(fz_context *ctx, globals *glo) { if (glo->doc) { - pdf_close_document(ctx, glo->doc); + pdf_drop_document(ctx, glo->doc); glo->doc = NULL; } diff --git a/source/tools/pdfpages.c b/source/tools/pdfpages.c index 9f688ac5..f13b5541 100644 --- a/source/tools/pdfpages.c +++ b/source/tools/pdfpages.c @@ -178,7 +178,7 @@ pdfpages_pages(fz_context *ctx, fz_output *out, char *filename, char *password, showpages(ctx, doc, out, "1-"); } - pdf_close_document(ctx, doc); + pdf_drop_document(ctx, doc); filename = argv[argidx]; fz_printf(ctx, out, "%s:\n", filename); @@ -201,7 +201,7 @@ pdfpages_pages(fz_context *ctx, fz_output *out, char *filename, char *password, if (state == NO_INFO_GATHERED) showpages(ctx, doc, out, "1-"); - pdf_close_document(ctx, doc); + pdf_drop_document(ctx, doc); return ret; } diff --git a/source/tools/pdfposter.c b/source/tools/pdfposter.c index 8989e2c9..a598fb21 100644 --- a/source/tools/pdfposter.c +++ b/source/tools/pdfposter.c @@ -205,7 +205,7 @@ int pdfposter_main(int argc, char **argv) pdf_save_document(ctx, doc, outfile, &opts); - pdf_close_document(ctx, doc); + pdf_drop_document(ctx, doc); fz_drop_context(ctx); return 0; } diff --git a/source/tools/pdfshow.c b/source/tools/pdfshow.c index ba560fc8..e84a9393 100644 --- a/source/tools/pdfshow.c +++ b/source/tools/pdfshow.c @@ -278,7 +278,7 @@ int pdfshow_main(int argc, char **argv) } fz_drop_output(ctx, out); - pdf_close_document(ctx, doc); + pdf_drop_document(ctx, doc); fz_drop_context(ctx); return 0; } |