We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 104051b commit be310fdCopy full SHA for be310fd
tests/resources/test-4479.pdf
156 KB
tests/test_4479.py
@@ -0,0 +1,18 @@
1
+import pymupdf
2
+
3
4
+def test_4479():
5
+ path = os.path.abspath(f"{__file__}/../../tests/resources/test-4479.pdf")
6
+ doc = pymupdf.open(path)
7
8
+ for layer in doc.layer_ui_configs():
9
+ if layer["text"] == "layer_2":
10
+ assert not layer["on"]
11
+ else:
12
+ assert layer["on"]
13
+ doc.set_layer_ui_config("layer_7", action=pymupdf.PDF_OC_TOGGLE)
14
15
+ if layer["text"] in ("layer_2", "layer_7"):
16
17
18
0 commit comments