summaryrefslogtreecommitdiff
path: root/pdf/mupdf-internal.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-08-13 19:08:42 +0200
committerRobin Watts <robin.watts@artifex.com>2012-09-04 19:13:07 +0100
commit226fc68a637d6220db6e79269352cbd13e43d93f (patch)
treeff0227febdba1ca4ec07d4322f202a5a5bff6b9e /pdf/mupdf-internal.h
parentb4419f7378da4c8f2ddbdaeb09cd604ee2d6a340 (diff)
downloadmupdf-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.h3
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);