OCG layers #4106
Unanswered
ZingZing001
asked this question in
Looking for help
OCG layers
#4106
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I developed a method for removing layered watermarks using Python, and surprisingly, this approach seemed to work at first, but after we had different people opening the processed PDF from different devices, things started to get weird.
Apple devices have no problem where the watermark stays hidden.
Android/Windows users still sees the watermark when they open the pdf.
Here's my remove layered pdf function in Python:
I'm aware that this method only sets the water mark layer to invisible, where the layer still exists.
How to reproduce this issue
By running the function with a pdf as input, the pdf files got different oc layers.
PyMuPDF version
1.24.14
Operating system
MacOS
Python version
3.9
Beta Was this translation helpful? Give feedback.
All reactions