summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-xref.c
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2013-08-18 13:44:47 +0200
committerRobin Watts <robin.watts@artifex.com>2013-08-28 13:35:51 +0100
commit7c7af425fb8d0467f4550f7ccdfa102d11f0690a (patch)
tree37c3666e8e09899e4ee4949594dd6ad6fe729754 /source/pdf/pdf-xref.c
parent2ed5d370aea6966115e27eb415612209a2696217 (diff)
downloadmupdf-7c7af425fb8d0467f4550f7ccdfa102d11f0690a.tar.xz
default OCGs to visible
By default an OCG is supposed to be visible (for a testcase, see 2011 - ocg without ocgs invisible.pdf). Also, the default visibility value can be overwritten in both ways, so that pdf_is_hidden_ocg must check the state both for being "OFF" and "ON" (testcase was 2066 - ocg not printed.pdf rendered with event="Print").
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r--source/pdf/pdf-xref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index 9c408051..743cf452 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -1002,7 +1002,7 @@ pdf_read_ocg(pdf_document *doc)
pdf_obj *o = pdf_array_get(ocg, i);
desc->ocgs[i].num = pdf_to_num(o);
desc->ocgs[i].gen = pdf_to_gen(o);
- desc->ocgs[i].state = 0;
+ desc->ocgs[i].state = 1;
}
doc->ocg = desc;
}