问答详情
源自:5-5 python读取PDF文档(二)

PDFPageAggregator()出错 TypeError: __init__() missing 1 required positional argument: 'rsrcmgr'

https://img.mukewang.com/5d56c8e0000196db11000539.png

from urllib.request import urlopen

from pdfminer.pdfdevice import PDFDevice

from pdfminer.pdfinterp import PDFPageInterpreter, PDFResourceManager

from pdfminer.pdfparser import PDFDocument, PDFParser

from pdfminer.layout import LAParams

from pdfminer.converter import PDFPageAggregator


提问者:海家上瘾 2019-08-16 23:17

个回答

  • 海家上瘾
    2019-08-17 00:07:40

    问题解决了

  • 海家上瘾
    2019-08-16 23:26:37

    device=PDFPageAggregator(resource,laparam=laparam)