summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-06-30 15:09:59 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-07-06 13:34:37 +0200
commit74627fe0ccb279638f82472048311097b39741d5 (patch)
tree94859ba3a1319bea0f02bee6d0b6795f7814d21a /include
parent944a6aff121475d1db07423fe97a72fa1ded3f40 (diff)
downloadmupdf-74627fe0ccb279638f82472048311097b39741d5.tar.xz
pdf: Flatten inheritable page properties when copying pages.
Affects pdfclean, pdfmerge, and pdfposter.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/page.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mupdf/pdf/page.h b/include/mupdf/pdf/page.h
index f1caf936..43634d46 100644
--- a/include/mupdf/pdf/page.h
+++ b/include/mupdf/pdf/page.h
@@ -14,6 +14,14 @@ pdf_obj *pdf_lookup_page_obj(fz_context *ctx, pdf_document *doc, int needle);
int pdf_lookup_anchor(fz_context *ctx, pdf_document *doc, const char *name);
/*
+ pdf_flatten_inheritable_page_items: Make page self sufficient.
+
+ Copy any inheritable page keys into the actual page object, removing
+ any dependencies on the page tree parents.
+*/
+void pdf_flatten_inheritable_page_items(fz_context *ctx, pdf_document *doc, pdf_obj *page);
+
+/*
pdf_load_page: Load a page and its resources.
Locates the page in the PDF document and loads the page and its