title: How to convert PDF to CSV with tabula-py?
body: <p>In Python 3, I have a PDF file "Ativos_Fevereiro_2018_servidores_rj.pdf" with 6,041 pages. I'm on a machine with Ubuntu</p>
  
  <p>On each page there is text at the top of the page, two lines. And below a table, with header and two columns. Each table in 36 rows, less on the last page</p>
  
  <p>At the end of each page, after the tables, there is also a line of text</p>
  
  <p>I want to create a CSV from this PDF, considering only the tables in the pages. And ignoring the texts before and after the tables</p>
  
  <p>Initially I tested the tabula-py. But it generates an empty file:</p>
  
  <pre><code>from tabula import convert_into
  
  convert_into("Ativos_Fevereiro_2018_servidores_rj.pdf", "test_s.csv", output_format="csv")
  </code></pre>
  
  <p>Please, does anyone know of another method to use tabula-py for this type of demand?</p>
  
  <p>Or another way to convert PDF to CSV in this file type?</p>