trivial change
git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@211 1aa58f4a-7d42-0410-adbc-911cccaed67cpull/1/head
parent
a16eba30b7
commit
32d65b70f8
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue