Hi
Adding new header worked fine for docx . We recently got "doc" file and i used the LibreOffice to convert doc to docx. I tried to add a header in this document , it throws error message
document = Document("myfile.docx")
document.add_heading('Heading, level 2', level=2)
document.save("myfile.docx")
KeyError: "no style with name 'Heading 2'"
Is this library not supporting to add the heading if the doc is converted using LibrOffcie?
I appreciate your suggetsions.