title: Tabula-py omitting pages from a PDF document I am trying to extract
body: <p>I am trying to extract tables from a multi-page PDF with tabula-py, and while the tables on some of the pages of the PDF are extracted perfectly, <strong>some pages are omitted entirely</strong>. </p>
  
  <p>The omissions seem to be random and don't follow any visible visual features on the PDF (as each page looks the same), and so tabula omitted page 1, extracted page 2, omitted pages 3 and 4, extracted page 5, omitted page 6, extracted pages 8 and 9, omitted 10, extracted 11, etc. I have macOS Sierra 10.12.6 and Python 3.6.3 :: Anaconda custom (64-bit).</p>
  
  <p>I've tried splitting the PDF into shorter sections, even into one-pagers, but the pages that are omitted don't seem to be possible to extract no matter what I've tried. I've read the related documentation and filed issues on the Tabula-py GitHub page as well as here on Stack Overflow, but I don't seem to find a solution.</p>
  
  <p>The code I use through iPython notebooks is as follows:</p>
  
  <p><em>To install tabula through the terminal:</em></p>
  
  <pre><code>pip install tabula-py
  </code></pre>
  
  <p><em>To extract the tables in my PDF:</em></p>
  
  <pre><code>from tabula import read_pdf
  df = read_pdf("document_name.pdf", pages="all")
  </code></pre>
  
  <p><em>I also tried the following, which didn't make any difference</em></p>
  
  <pre><code>df = read_pdf("document_name", pages="1-361")
  </code></pre>
  
  <p><em>To save the data frame into csv:</em></p>
  
  <pre><code>df.to_csv('document_name.csv')
  </code></pre>
  
  <p>I'd be <strong>really thankful</strong> if you could help me with this, as I feel like I'm stuck with a PDF from which I've only managed to extract around 50% of data. This is infuriating, as the 50% looks absolutely perfect, but the other 50% seems out of my reach and renders the larger project of analyzing the data impossible.</p>
  
  <p>I also wonder if this might be an issue of the PDF rather than Tabula - could the file be mistakenly set as protected or locked and whether any of you knows how I could check for that and open it up?</p>
  
  <p><strong>Thanks a ton in advance!</strong></p>