title: Pdf to XML/json using Python module
body: <p>I am able to read the text from pdf using code:</p>
  
  <pre><code>import pdfx
  pdf = pdfx.PDFx("1951.pdf")
  metadata = pdf.get_metadata()
  reference_list = pdf.get_references()
  reference_dict = pdf.get_references_as_dict()
  pdf.download_pdfs("D:/")
  pdf.get_text()
  </code></pre>
  
  <p>But can't convert it into json:</p>
  
  <pre><code>pdfx -d D:/Output/ -j -o output.json pdf
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>Syntax: pdfx [-h] [-d OUTPUT_DIRECTORY] [-c] [-j] [-v] [-t] [-o OUTPUT_FILE]
              [--version]
              pdf</p>