title: How I can convert file with any format to text format using Python 3.6?
body: <p>I am trying to have a converter that can convert any file of any format to text, so that processing becomes easier to me. I have used the Python <code>textract</code> library.<br>
  Here is the documentation:  <a href="https://textract.readthedocs.io/en/stable/" rel="nofollow noreferrer">https://textract.readthedocs.io/en/stable/</a>    </p>
  
  <p>I have install it using the <code>pip</code> and have tried to use it. But got error and could not understand how to resolve it.  </p>
  
  <pre><code>&gt;&gt;&gt; import textract
  &gt;&gt;&gt; text = textract.process('C:\Users\beta\Desktop\Projects Done With Specification.pdf', method='pdfminer')
    File "&lt;stdin&gt;", line 1
  SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
  </code></pre>
  
  <p>Even I have tried using the command without specifying method.</p>
  
  <pre><code>&gt;&gt;&gt; import textract
  &gt;&gt;&gt; text = textract.process('C:\Users\beta\Desktop\Projects Done With Specification.pdf')
    File "&lt;stdin&gt;", line 1
  SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
  </code></pre>
  
  <p>Kindly let me know how I can get rid of this issue with your suggestion. If it is possible then please suggest me the solution, if there is anything else that can be handy instead of <code>textract</code>, then still you can suggest me. I would like to hear.</p>