Python Forum

Full Version: Removal of watermark logo pdf file Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Any solution to remove watermark image from pdf file using python

I tried using cv2.inpaint
It is just changing the colour.

import cv2
import numpy as np

img = cv2.imread("test.jpg")


alpha = 2.0
beta = -130

new = alpha * img + beta
new = np.clip(new, 0, 255).astype(np.uint8)

cv2.imwrite("cleaned.png", new)

is there any otherway to remove bookmark image from pdf pages.