title: Remove some images and text objects from pdf
body: <p>I have a pdf page object with an image and a lot of text.</p>
  <p>I want to remove that image and remove some text objects based on their contents. That is I want to get all text objects' contents, then remove some of them if they satisfied the condition.</p>
  <p>How can I do that with <a href="https://pypi.org/project/PyPDF2/" rel="nofollow noreferrer">PyPDF2</a>? Or is there another library which allows doing that?</p>