pdfminer
pdfminer copied to clipboard
TypeError: __init__() got an unexpected keyword argument 'stripcontrol'
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?
python pdf2txt.py -o E:\zerodhaVarsity\out.xml -t xml -S E:\zerodhaVarsity\ZD6176_28112017_BSEMS_1.pdf
even tried this too
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!