code: def has_text(self):
          
          text_showing_operators = """TJ " ' Tj"""
          text_showing_insts = parse_content_stream(self.obj, text_showing_operators)
          if len(text_showing_insts) > 0:
              return True
          return False
docs: Check if this page print text
  
          Search the content stream for any of the four text showing operators.
          We ignore text positioning operators because some editors might
          generate maintain these even if text is deleted etc.
  
          This cannot detect raster text (text in a bitmap), text rendered as
          curves. It also cannot determine if the text is visible to the user.
  
          :return: True if there is text