diff options
Diffstat (limited to 'source/tools/pdfpages.c')
-rw-r--r-- | source/tools/pdfpages.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/tools/pdfpages.c b/source/tools/pdfpages.c index cb6a6a2d..598f7594 100644 --- a/source/tools/pdfpages.c +++ b/source/tools/pdfpages.c @@ -31,7 +31,7 @@ showbox(fz_context *ctx, fz_output *out, pdf_obj *page, char *text, pdf_obj *nam pdf_to_rect(ctx, obj, &bbox); - fz_printf(ctx, out, "<%s l=\"%g\" b=\"%g\" r=\"%g\" t=\"%g\" />\n", text, bbox.x0, bbox.y0, bbox.x1, bbox.y1); + fz_write_printf(ctx, out, "<%s l=\"%g\" b=\"%g\" r=\"%g\" t=\"%g\" />\n", text, bbox.x0, bbox.y0, bbox.x1, bbox.y1); } fz_catch(ctx) { @@ -53,7 +53,7 @@ shownum(fz_context *ctx, fz_output *out, pdf_obj *page, char *text, pdf_obj *nam if (!pdf_is_number(ctx, obj)) break; - fz_printf(ctx, out, "<%s v=\"%g\" />\n", text, pdf_to_real(ctx, obj)); + fz_write_printf(ctx, out, "<%s v=\"%g\" />\n", text, pdf_to_real(ctx, obj)); } fz_catch(ctx) { @@ -69,7 +69,7 @@ showpage(fz_context *ctx, pdf_document *doc, fz_output *out, int page) pdf_obj *pageref; int failed = 0; - fz_printf(ctx, out, "<page pagenum=\"%d\">\n", page); + fz_write_printf(ctx, out, "<page pagenum=\"%d\">\n", page); fz_try(ctx) { pageref = pdf_lookup_page_obj(ctx, doc, page-1); @@ -78,7 +78,7 @@ showpage(fz_context *ctx, pdf_document *doc, fz_output *out, int page) } fz_catch(ctx) { - fz_printf(ctx, out, "Failed to gather information for page %d\n", page); + fz_write_printf(ctx, out, "Failed to gather information for page %d\n", page); failed = 1; } @@ -93,7 +93,7 @@ showpage(fz_context *ctx, pdf_document *doc, fz_output *out, int page) failed |= shownum(ctx, out, pageref, "UserUnit", PDF_NAME_UserUnit); } - fz_printf(ctx, out, "</page>\n"); + fz_write_printf(ctx, out, "</page>\n"); return failed; } @@ -141,7 +141,7 @@ pdfpages_pages(fz_context *ctx, fz_output *out, char *filename, char *password, pdf_drop_document(ctx, doc); filename = argv[argidx]; - fz_printf(ctx, out, "%s:\n", filename); + fz_write_printf(ctx, out, "%s:\n", filename); doc = pdf_open_document(ctx, filename); if (pdf_needs_password(ctx, doc)) if (!pdf_authenticate_password(ctx, doc, password)) |