Skip to content

Redacting all images #914

Discussion options

You must be logged in to vote

First of all: thanks a lot for the compliments - very rewarding indeed!

When you say "Redact the images", then you mean delete them and put a textbox there instead, right?

  1. From from can be seen in your snippet, the page.apply_redactions() is not indented correctly. As it is placed, it will only redact the last page of the document. Maybe that one didn't even have an image?
  2. You should also check, whether an image reference found in page.get_page_images() really is an existing image on the page. Need not be the case because of how your PDF may be designed. The returned bbox will be "infinite" then.
  3. Redacting the images per page should be indented one more level. So, when a page has 5 image…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@northloopforensics
Comment options

Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants