summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-11-11 19:48:58 +0000
committerRobin Watts <robin.watts@artifex.com>2016-11-14 16:09:41 +0000
commite70dcdfb2372857f5f685de5d7742ab5d6ba9d7c (patch)
tree420137adda596f23f1829b32ad9bfcb4cf93c837 /include
parent7703ad8b2564f2f3a99b85eca5af276d7ba0e3e4 (diff)
downloadmupdf-e70dcdfb2372857f5f685de5d7742ab5d6ba9d7c.tar.xz
Continued Layer API work.
Hide pdf_is_hidden_ocg from the public interface. Ensure that RBGroups and Order properly fall back to the default entries if they are missing in the OCCDs. Add pdf_set_layer_config_as_default. This sets the default layer config to be current one. This destroys the current default dictionary, but we leave the other configs intact.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/document.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mupdf/pdf/document.h b/include/mupdf/pdf/document.h
index 4cb4c819..dc74ec7b 100644
--- a/include/mupdf/pdf/document.h
+++ b/include/mupdf/pdf/document.h
@@ -237,7 +237,11 @@ typedef struct
*/
void pdf_layer_config_ui_info(fz_context *ctx, pdf_document *doc, int ui, pdf_layer_config_ui *info);
-int pdf_is_hidden_ocg(fz_context *ctx, pdf_ocg_descriptor *desc, pdf_obj *rdb, const char *usage, pdf_obj *ocg);
+/*
+ pdf_set_layer_config_as_default: Write the current layer
+ config back into the document as the default state.
+*/
+void pdf_set_layer_config_as_default(fz_context *ctx, pdf_document *doc);
/*
pdf_update_page: update a page for the sake of changes caused by a call