pdfminer icon indicating copy to clipboard operation
pdfminer copied to clipboard

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

Open saurabhbidwai opened this issue 7 years ago • 2 comments

I'm getting this error while doing

python pdf2txt.py -o E:\zerodhaVarsity\out.xml -t xml E:\zerodhaVarsity\ZD6176_28112017_BSEMS_1.pdf

can anybody help me with this?

saurabhbidwai avatar Nov 30 '17 05:11 saurabhbidwai

python pdf2txt.py -o E:\zerodhaVarsity\out.xml -t xml -S E:\zerodhaVarsity\ZD6176_28112017_BSEMS_1.pdf

even tried this too

saurabhbidwai avatar Nov 30 '17 06:11 saurabhbidwai

This is how it worked for me. i downloaded the package and extracted it but before i install it i deleted the argument elif outtype == 'xml': device = XMLConverter(rsrcmgr, outfp, codec=codec, laparams=laparams, imagewriter=imagewriter, stripcontrol=stripcontrol) from the file pdf2txt.py in pdfminer-master/tools then it worked. I did the same for html output by deleting the debug argument!

abrshdir avatar Mar 12 '19 15:03 abrshdir