diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-07-07 15:25:46 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-07-08 17:21:23 +0200 |
commit | a7c01fa4e8b6db64e4f061197320d3dc9ad63067 (patch) | |
tree | ba84cf4a3205955ef7c3aa754658ed7a24dbb3c1 /include | |
parent | 84ae15f2c4c8fec4f4c67b5ef6a609ef0451c5bd (diff) | |
download | mupdf-a7c01fa4e8b6db64e4f061197320d3dc9ad63067.tar.xz |
Slim pdf_xobject struct: remove cached resources field.
The "contents" field is the same as the "obj" field, so can also be
removed.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/resource.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mupdf/pdf/resource.h b/include/mupdf/pdf/resource.h index c417635e..f42e3644 100644 --- a/include/mupdf/pdf/resource.h +++ b/include/mupdf/pdf/resource.h @@ -91,6 +91,7 @@ struct pdf_xobject_s { fz_storable storable; pdf_obj *obj; + pdf_document *document; fz_matrix matrix; fz_rect bbox; @@ -98,9 +99,6 @@ struct pdf_xobject_s int knockout; int transparency; fz_colorspace *colorspace; - pdf_document *document; - pdf_obj *resources; - pdf_obj *contents; int iteration; }; @@ -112,4 +110,6 @@ void pdf_update_xobject_contents(fz_context *ctx, pdf_document *doc, pdf_xobject void pdf_update_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot); +pdf_obj *pdf_xobject_resources(fz_context *ctx, pdf_xobject *xobj); + #endif |