diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-16 08:06:24 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-16 08:06:24 +0000 |
commit | 9ac2094ac58a63fed6ee71246905a162831675ca (patch) | |
tree | 58f7f1c34d864dd8570dc732ef8837f9f6b1c09e /apps/pdfclean.c | |
parent | 22c78bd39b2d8316af4c7d20d7f322fa7d534102 (diff) | |
download | mupdf-9ac2094ac58a63fed6ee71246905a162831675ca.tar.xz |
Clarify function names for opening a PDF file.
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r-- | apps/pdfclean.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c index 0ecbb98e..6824707d 100644 --- a/apps/pdfclean.c +++ b/apps/pdfclean.c @@ -225,9 +225,15 @@ static void removeduplicateobjs(void) static void retainpages(int argc, char **argv) { + fz_error error; fz_obj *root, *pages, *kids; int count; + /* Load the old page tree */ + error = pdf_loadpagetree(xref); + if (error) + die(fz_rethrow(error, "cannot load page tree")); + /* Snatch pages entry from root dict */ root = fz_dictgets(xref->trailer, "Root"); pages = fz_keepobj(fz_dictgets(root, "Pages")); @@ -557,7 +563,7 @@ int main(int argc, char **argv) die(fz_throw("cannot open output file '%s'", outfile)); fprintf(out, "%%PDF-%d.%d\n", xref->version / 10, xref->version % 10); - fprintf(out, "%%\342\343\317\323\n\n"); + fprintf(out, "%%\316\274\341\277\246\n\n"); uselist = malloc(sizeof (char) * (xref->len + 1)); ofslist = malloc(sizeof (int) * (xref->len + 1)); |