diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-11-09 14:17:00 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-12-11 12:11:31 +0100 |
commit | c22e6a6dc2bf6acbac955bd5fbdd896329dfd725 (patch) | |
tree | d9d84d3a6a74ed74c9d470b532097769545e8dc6 /source/tools/pdfinfo.c | |
parent | 95b928431f233052e4bbbd1b2bf9fc705657b5a7 (diff) | |
download | mupdf-c22e6a6dc2bf6acbac955bd5fbdd896329dfd725.tar.xz |
Use fz_output instead of FILE* for most of our output needs.
Use fz_output in debug printing functions.
Use fz_output in pdfshow.
Use fz_output in fz_trace_device instead of stdout.
Use fz_output in pdf-write.c.
Rename fz_new_output_to_filename to fz_new_output_with_path.
Add seek and tell to fz_output.
Remove unused functions like fz_fprintf.
Fix typo in pdf_print_obj.
Diffstat (limited to 'source/tools/pdfinfo.c')
-rw-r--r-- | source/tools/pdfinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/tools/pdfinfo.c b/source/tools/pdfinfo.c index 4f370f16..6133e7f5 100644 --- a/source/tools/pdfinfo.c +++ b/source/tools/pdfinfo.c @@ -184,14 +184,14 @@ showglobalinfo(fz_context *ctx, globals *glo) if (obj) { fz_printf(ctx, out, "Info object (%d %d R):\n", pdf_to_num(ctx, obj), pdf_to_gen(ctx, obj)); - pdf_output_obj(ctx, out, pdf_resolve_indirect(ctx, obj), 1); + pdf_print_obj(ctx, out, pdf_resolve_indirect(ctx, obj), 1); } obj = pdf_dict_get(ctx, pdf_trailer(ctx, doc), PDF_NAME_Encrypt); if (obj) { fz_printf(ctx, out, "\nEncryption object (%d %d R):\n", pdf_to_num(ctx, obj), pdf_to_gen(ctx, obj)); - pdf_output_obj(ctx, out, pdf_resolve_indirect(ctx, obj), 1); + pdf_print_obj(ctx, out, pdf_resolve_indirect(ctx, obj), 1); } fz_printf(ctx, out, "\nPages: %d\n\n", glo->pagecount); @@ -1073,7 +1073,7 @@ int pdfinfo_main(int argc, char **argv) ret = 0; fz_try(ctx) { - out = fz_new_output_with_file(ctx, stdout, 0); + out = fz_new_output_with_file_ptr(ctx, stdout, 0); pdfinfo_info(ctx, out, filename, password, show, &argv[fz_optind], argc-fz_optind); } fz_catch(ctx) |