diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-07-07 00:37:34 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-07-07 00:37:34 +0200 |
commit | b49afb182e5930fc49a7b87ba32e32ede19d0d33 (patch) | |
tree | 1047467f4dd35d1c60f7ad54d6b4fbbfed381336 | |
parent | 2e208b419e479083677c24d8ff946d3b0ebf85be (diff) | |
download | mupdf-b49afb182e5930fc49a7b87ba32e32ede19d0d33.tar.xz |
Allow for page bounds to be indirectly referenced.
-rw-r--r-- | mupdf/pdf_page.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mupdf/pdf_page.c b/mupdf/pdf_page.c index 436b0689..1a57dd76 100644 --- a/mupdf/pdf_page.c +++ b/mupdf/pdf_page.c @@ -186,6 +186,9 @@ pdf_loadpage(pdf_page **pagep, pdf_xref *xref, fz_obj *dict) obj = fz_dictgets(dict, "CropBox"); if (!obj) obj = fz_dictgets(dict, "MediaBox"); + error = pdf_resolve(&obj, xref); + if (error) + return fz_rethrow(error, "cannot resolve page bounds"); if (!fz_isarray(obj)) return fz_throw("cannot find page bounds"); bbox = pdf_torect(obj); |