summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2012-07-05 00:33:57 +0200
committerRobin Watts <robin.watts@artifex.com>2012-07-06 11:39:33 +0100
commita4f38e03b9fb97002b497122ab2dff2f322776f4 (patch)
treef5306d8409d4918379738e9758ca525d9ad6303c
parent957920f2e043c0c4a4bf4240928a74a3a58e0037 (diff)
downloadmupdf-a4f38e03b9fb97002b497122ab2dff2f322776f4.tar.xz
Use pdf_fprintf_obj instead of pdf_print_obj in apps.
-rw-r--r--apps/mupdfinfo.c4
-rw-r--r--apps/mupdfshow.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/mupdfinfo.c b/apps/mupdfinfo.c
index 5bdf760e..279298c2 100644
--- a/apps/mupdfinfo.c
+++ b/apps/mupdfinfo.c
@@ -176,14 +176,14 @@ showglobalinfo(void)
if (obj)
{
printf("Info object (%d %d R):\n", pdf_to_num(obj), pdf_to_gen(obj));
- pdf_print_obj(pdf_resolve_indirect(obj));
+ pdf_fprint_obj(stdout, pdf_resolve_indirect(obj), 0);
}
obj = pdf_dict_gets(xref->trailer, "Encrypt");
if (obj)
{
printf("\nEncryption object (%d %d R):\n", pdf_to_num(obj), pdf_to_gen(obj));
- pdf_print_obj(pdf_resolve_indirect(obj));
+ pdf_fprint_obj(stdout, pdf_resolve_indirect(obj), 0);
}
printf("\nPages: %d\n\n", pagecount);
diff --git a/apps/mupdfshow.c b/apps/mupdfshow.c
index 8e8425b0..837e67bd 100644
--- a/apps/mupdfshow.c
+++ b/apps/mupdfshow.c
@@ -24,7 +24,7 @@ static void showtrailer(void)
if (!doc)
fz_throw(ctx, "no file specified");
printf("trailer\n");
- pdf_print_obj(doc->trailer);
+ pdf_fprint_obj(stdout, doc->trailer, 0);
printf("\n");
}
@@ -32,7 +32,7 @@ static void showxref(void)
{
if (!doc)
fz_throw(ctx, "no file specified");
- pdf_print_xref(doc);
+ pdf_fprint_obj(stdout, doc, 0);
printf("\n");
}
@@ -122,7 +122,7 @@ static void showobject(int num, int gen)
else
{
printf("%d %d obj\n", num, gen);
- pdf_print_obj(obj);
+ pdf_fprint_obj(stdout, obj, 0);
printf("stream\n");
showstream(num, gen);
printf("endstream\n");
@@ -132,7 +132,7 @@ static void showobject(int num, int gen)
else
{
printf("%d %d obj\n", num, gen);
- pdf_print_obj(obj);
+ pdf_fprint_obj(stdout, obj, 0);
printf("endobj\n\n");
}