I have a python script that creates a docx file using python-docx. The document file has hyperlinks set to the bookmarks linked inside the document paragraphs. It shows correctly if I open the document within my laptop. But when I open the document on google drive after uploading, it is skipping the hyperlink part. Any ideas what might be going wrong? This is how I am uploading the document using pydrive. Should I try to upload it in PDF format if that helps?
http = drive.auth.Get_Http_Object()
# createfile
file1 = drive.CreateFile({'title': 'Test Report.docx',
'mimeType': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'})
file1.SetContentFile("read.docx")
file1.Upload(param={"http": http})