当前位置:   article > 正文

pdfminer转换PDF为html,python - Converting PDF to html with PDFminer - Stack Overflow

pdfminer把pdf解析成html

I am trying to use the pdfminer command line tool to convert a pdf file to an html file, after running this

pdf2txt.py -o output.html -t html casino.pdf

I am getting the following error:

Traceback (most recent call last):

File "/usr/local/bin/pdf2txt.py", line 101, in

if __name__ == '__main__': sys.exit(main(sys.argv))

File "/usr/local/bin/pdf2txt.py", line 87, in main

layoutmode=layoutmode, laparams=laparams, outdir=outdir)

TypeError: __init__() got an unexpected keyword argument 'outdir'

I have used this library before and it was working perfectly, I am really having a hard time to understand whats going on

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号