title: Position and extract table from pdf file in Python
body: <p>Say I have many Chinese pdf files as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/e9sxt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e9sxt.png" alt=""></a></p>
  
  <p>In some pages of the files, they contain tables with same template as above.</p>
  
  <p>So I want to position and extract those tables, then read as dataframe, or maybe merge them together and save as an excel file.</p>
  
  <p>Just wondering if it's possible to do that in Python packages? I tried with <code>pdfminer</code>, <code>tika</code>, <code>tabula</code>, etc, but out of luck. </p>
  
  <p>Since the PDF format has no internal representation of a table structure, which makes it difficult to extract tables for analysis. So I think maybe it's necessary to convert those files into images then use image recognition at this case. </p>
  
  <p>Reference:</p>
  
  <p><a href="https://excalibur-py.readthedocs.io/en/master/" rel="nofollow noreferrer">https://excalibur-py.readthedocs.io/en/master/</a></p>