title: Pythonanywhere Textract UnicodeDecodeError ONLY on website
body: <p>I am developing a website which should be able to take PDF files and extract 8 digit numbers from them (<a href="https://jw30.pythonanywhere.com" rel="nofollow noreferrer">Website link</a> + <a href="https://github.com/JW30/jw30pdf" rel="nofollow noreferrer">GitHub repo</a>).</p>
  <p>However when trying to process this PDF file <a href="https://easyupload.io/erfbhs" rel="nofollow noreferrer">AbenteuerGarten2021.pdf</a> with the textract package I get the following <a href="https://codeshare.io/Wdd4bv" rel="nofollow noreferrer">UnicodeDecodeError</a> !</p>
  <p>Strangely when running the exact same flask app on the development server with the exactly same PDF file mentioned above I don't get an error and it works perfectly.</p>
  <p>I am using Python 3.8.2 on local environment (Big Sur 11.4) and 3.8.0 on pythonanywhere. Both environments use the following:</p>
  <ul>
  <li>Flask 2.0.1</li>
  <li>Werkzeug 2.0.1</li>
  <li>Textract 1.6.3</li>
  </ul>
  <p>Please can anyone help me, I don't understand where the problem is coming from.</p>
  <hr />
  <p>I managed to fix the problem by using the method &quot;pdfminer&quot; in process call. I have no idea why it works, but it does. For anyone having similar problem.</p>