title: Postgres: It is possibile cast a bytea type (pdf) in text or serach in?
body: <p>I have a PostgreSQL table with a bytea that is a PDF.</p>
  
  <p>I want to search a text in. How it is possible?
  Is there a possibility to cast pdf to text directly in sql-query?</p>