title: Old code doesn't work with the new version of PDFMiner
body: <p>I have "inherited" a program from the former collegue. This program worked fine earlier but doesn't work by me. The reason is that the collegue used an older version of PDFMiner (I don't know which version it was) whereas I have a new version. The code is as follows:</p>
  
  <pre><code>filpath=r"...."
  rsrcmgr = PDFResourceManager()
  retstr = StringIO()
  laparams = LAParams()
  device = PDFPageAggregator(rsrcmgr, laparams=laparams)
  fp = open(filepath,'rb')
  interpreter = PDFPageInterpreter(rsrcmgr,device)
  parser = PDFParser(fp)
  doc = PDFDocument()
  parser.set_document(doc)
  doc.set_parser(parser)
  doc.initialize('') 
  </code></pre>
  
  <p>At first I had the error </p>
  
  <pre><code>doc = PDFDocument()
  TypeError: __init__() missing 1 required positional argument: 'parser'. 
  </code></pre>
  
  <p>I changed the line doc = PDFDocument() to doc = PDFDocument(parser). This worked but now I have the error</p>
  
  <pre><code>'PDFDocument' object has no attribute 'set_parser'
  </code></pre>
  
  <p>whicht apparently comes from the line doc.set_parser(parser).
  What should I do now?</p>
  
  <p>Additional Information: the import line in the old program was </p>
  
  <pre><code>from pdfminer.pdfparser import PDFParser, PDFDocument
  </code></pre>
  
  <p>This doesn't work now, I had to change it to two lines</p>
  
  <pre><code>from pdfminer.pdfparser import PDFParser
  from pdfminer.pdfdocument import PDFDocument
  </code></pre>
  
  <p>Thanks in advance!</p>
  
  <p>UPDATE. 
  I was able at the end to solve my Problem in a "cheap" way - I installed the old version of pdfminer, so I haven't to change anything in the code. </p>