diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-10-28 10:29:22 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-10-28 10:29:22 +0200 |
commit | 1ff59583f5a758ee99984e011525395dfb416611 (patch) | |
tree | 98b8df7a899cb7d38f5d62ea3bc70d00a93e2542 /test | |
parent | a512c9192ac6ed8398b8fe9305ae667402162ebf (diff) | |
download | mupdf-1ff59583f5a758ee99984e011525395dfb416611.tar.xz |
comments on outline and nametree
Diffstat (limited to 'test')
-rw-r--r-- | test/pdfrip.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pdfrip.c b/test/pdfrip.c index 57eba80a..986e61a9 100644 --- a/test/pdfrip.c +++ b/test/pdfrip.c @@ -82,6 +82,7 @@ int main(int argc, char **argv) char *filename; pdf_xref *xref; pdf_pagetree *pages; + pdf_outlinetree *outlines; int c; char *password = ""; @@ -119,11 +120,22 @@ int main(int argc, char **argv) error = pdf_loadpagetree(&pages, xref); if (error) fz_abort(error); + outlines = nil; + error = pdf_loadoutlinetree(&outlines, xref); + if (error) { fz_warn(error->msg); fz_freeerror(error); } + if (optind == argc) { printf("pagetree\n"); pdf_debugpagetree(pages); printf("\n"); + + if (outlines) + { + printf("outlines\n"); + pdf_debugoutlinetree(outlines); + printf("\n"); + } } for ( ; optind < argc; optind++) |