diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-06-28 11:12:35 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-07-11 10:46:39 +0100 |
commit | 9b3e229f1d590eb40e5fcc9357f8311b1968bc3a (patch) | |
tree | be696129062bd2e64a4d97acd700212019939d13 /source/tools/pdfshow.c | |
parent | a9ae5d6ce95295348ece508aa91eddbe4a68482d (diff) | |
download | mupdf-9b3e229f1d590eb40e5fcc9357f8311b1968bc3a.tar.xz |
Implement dynamic page tree lookups.
No more caching a flattened page tree in doc->page_objs/refs.
No more flattening of page resources, rotation and boxes.
Smart page number lookup by following Parent links.
Naive implementation of insert and delet page that doesn't rebalance the trees.
Requires existing page tree to hook into, cannot be used to create a page tree
from scratch.
Diffstat (limited to 'source/tools/pdfshow.c')
-rw-r--r-- | source/tools/pdfshow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tools/pdfshow.c b/source/tools/pdfshow.c index 78e3fd08..6e721464 100644 --- a/source/tools/pdfshow.c +++ b/source/tools/pdfshow.c @@ -62,7 +62,7 @@ static void showpagetree(void) count = pdf_count_pages(doc); for (i = 0; i < count; i++) { - ref = doc->page_refs[i]; + ref = pdf_lookup_page_obj(doc, i); printf("page %d = %d %d R\n", i + 1, pdf_to_num(ref), pdf_to_gen(ref)); } printf("\n"); |