News

Hi. I'm trying to write a JSON file into a Docx document. in my JSON file, some lines are marked as bold and I want to write them to the Docx document as bold too. when I use the code provided in the ...
hyperlink = toc.add_hyperlink(heading.text, heading) ^^^^^ AttributeError: 'Paragraph' object has no attribute 'add_hyperlink' .. Below is my code: ` import docx from docx.enum.text import ...