You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I removed certain position In a PDF using apply_redaction and replaced the removed image in the same position, but it returns Black,Could be helpful if there is any solution .
Following is the code snippet I used
basepix = page.getPixmap(clip=fitz.Rect(image['bbox']),alpha=False)
page.addRedactAnnot(image['bbox'], fill=colors.to_rgb("white"), text=" ")
page.apply_redactions()
page.insert_image(image['bbox'],pixmap=basepix,overlay=True,keep_proportion=True)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi I removed certain position In a PDF using apply_redaction and replaced the removed image in the same position, but it returns Black,Could be helpful if there is any solution .
Following is the code snippet I used
basepix = page.getPixmap(clip=fitz.Rect(image['bbox']),alpha=False)
page.addRedactAnnot(image['bbox'], fill=colors.to_rgb("white"), text=" ")
page.apply_redactions()
page.insert_image(image['bbox'],pixmap=basepix,overlay=True,keep_proportion=True)
Beta Was this translation helpful? Give feedback.
All reactions