title: PDF to Json using PDFX Python library
body: <p>I am trying to convert .PDF's to JSON files in order to scrape the information out of them easier.  I can get the metadata from the .PDF file, but it only has the first page or what looks to be the parameters for the .PDF but it doesn't list the actual data.  Below is my code.  It is very simple as I am still learning how to use the library and this is what I was able to get from the documentation on the library's site.</p>
  
  <pre><code>import pdfx
  
  pdf = pdfx.PDFx("Q1_Employee_Earnings_Record.pdf")
  metadata = pdf.get_metadata()
  reference_list = pdf.get_references()
  reference_dict = pdf.get_references_as_dict()
  pdf.download_pdfs("target-directory")
  </code></pre>
  
  <p>Here is my output:</p>
  
  <pre><code>{
    "source": {
      "type": "file",
      "location": "Q1_Employee_Earnings_Record.pdf",
      "filename": "Q1_Employee_Earnings_Record.pdf"
    },
    "metadata": {
      "Creator": "HP Exstream Version 8.0.317 64-bit",
      "CreationDate": "3/31/2017 21:51:48",
      "Author": "Registered to: PAYCHEX ",
      "Title": "Employee Earnings Record Application",
      "Pages": 26
    },
    "references": {}
  }
  </code></pre>
  
  <p>As you can see there are 26 pages, but the pages and the information contained within will not output.  Is there a way to get my code above to output all of the data from every page?  I know the data is accessible since I have converted this exact .PDF into a text file using PDFminer.</p>