diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-08-13 19:08:42 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-09-04 19:13:07 +0100 |
commit | 226fc68a637d6220db6e79269352cbd13e43d93f (patch) | |
tree | ff0227febdba1ca4ec07d4322f202a5a5bff6b9e /pdf/mupdf-internal.h | |
parent | b4419f7378da4c8f2ddbdaeb09cd604ee2d6a340 (diff) | |
download | mupdf-226fc68a637d6220db6e79269352cbd13e43d93f.tar.xz |
Make pdf resource localisation procedure non-static.
And add a flag in the xref for evey PDF document to say whether it
has been localised or not; this will be important for PDF editing to
avoid us having to localise on every edit.
Diffstat (limited to 'pdf/mupdf-internal.h')
-rw-r--r-- | pdf/mupdf-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pdf/mupdf-internal.h b/pdf/mupdf-internal.h index eca0b67f..347f74b5 100644 --- a/pdf/mupdf-internal.h +++ b/pdf/mupdf-internal.h @@ -218,6 +218,7 @@ struct pdf_document_s int page_cap; pdf_obj **page_objs; pdf_obj **page_refs; + int resources_localised; pdf_lexbuf_large lexbuf; @@ -232,6 +233,8 @@ struct pdf_document_s pdf_document *pdf_open_document_no_run(fz_context *ctx, const char *filename); pdf_document *pdf_open_document_no_run_with_stream(fz_context *ctx, fz_stream *file); +void pdf_localise_page_resources(pdf_document *xref); + void pdf_cache_object(pdf_document *doc, int num, int gen); fz_stream *pdf_open_inline_stream(pdf_document *doc, pdf_obj *stmobj, int length, fz_stream *chain, pdf_image_params *params); |