scripts/pdf2doc.py cannot run. Three separate mistakes against the pdf2docx API:
from pdf2docx import Convertor # ImportError — the class is `Converter`
cv = Convertor(pdf_file)
cv.convertor(docx_file) # AttributeError — the method is `convert`
cv.close # references the method, never calls it
It also hardcodes ListsOfInbuiltMethods.pdf, which lives in resources/, so even with the names fixed the path fails from the repo root.
Expected
python scripts/pdf2doc.py resources/ListsOfInbuiltMethods.pdf output.docx
Acceptance criteria
Good first issue — the fix is small, but you'll need to install pdf2docx and actually run it.
scripts/pdf2doc.pycannot run. Three separate mistakes against thepdf2docxAPI:It also hardcodes
ListsOfInbuiltMethods.pdf, which lives inresources/, so even with the names fixed the path fails from the repo root.Expected
Acceptance criteria
Converter,.convert(docx_file),.close()— correct names,close()actually called.argparse, not hardcoded.resources/end to end.pip install pdf2docx" note at the top of the file.Good first issue — the fix is small, but you'll need to install
pdf2docxand actually run it.