trivial change

git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@211 1aa58f4a-7d42-0410-adbc-911cccaed67c
pull/1/head
yusuke.shinyama.dummy 2010-04-24 13:31:03 +00:00
parent a16eba30b7
commit 32d65b70f8
1 changed files with 4 additions and 4 deletions

View File

@ -59,14 +59,14 @@ def convert(outfp, infp, path, codec='utf-8',
infp.close() infp.close()
# perform conversion and # perform conversion and
# send the results over the network. # send the results over the network.
rsrc = PDFResourceManager() rsrcmgr = PDFResourceManager()
laparams = LAParams() laparams = LAParams()
if html: if html:
device = HTMLConverter(rsrc, outfp, codec=codec, laparams=laparams) device = HTMLConverter(rsrcmgr, outfp, codec=codec, laparams=laparams)
else: else:
device = TextConverter(rsrc, outfp, codec=codec, laparams=laparams) device = TextConverter(rsrcmgr, outfp, codec=codec, laparams=laparams)
fp = file(path, 'rb') fp = file(path, 'rb')
process_pdf(rsrc, device, fp, pagenos, maxpages=maxpages) process_pdf(rsrcmgr, device, fp, pagenos, maxpages=maxpages)
fp.close() fp.close()
return return