Removing a flatten Watermark from PDF #2105
-
Hi, I have a large number of PDF files with flatten watermark that need to be removed. The watermark exists as Form XObject in the PDF file, under the Resources\XObject group, see screenshot below. I tried following the solution for a similar issue at the link below, but couldn't get it to work. That solution use the clean_contents, get_contents and read_contents method to remove the watermark, but I wasn't able to get my watermark using same method. Maybe it is because my watermark is under Resources, not Contents? Really appreciate the help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
No, has nothing to do with this. Every XObject also will be referenced in the contents. You did not really mention what you have tried. It is also not clear which watermark mechanism your PDFs are using. There are a handful of different ways to generate the impression of a "watermark". So there is no single way to remove them. |
Beta Was this translation helpful? Give feedback.
-
Whatever the PDF debugger is and what it pretends to show: |
Beta Was this translation helpful? Give feedback.
Whatever the PDF debugger is and what it pretends to show:
It did not display that page's
/Contents
!Why don't you look yourself?
Doing
print(page.read_contents().decode())
will show a lot of vector graphics (line art) and no such text.In the end, this means you cannot remove this approach of "watermarking".