From e70dcdfb2372857f5f685de5d7742ab5d6ba9d7c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 11 Nov 2016 19:48:58 +0000 Subject: 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. --- include/mupdf/pdf/document.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3