I am trying to embed fonts in docx file in python using spire.doc but it doesn't work
My code like this :
- Code: Select all
document.EmbedFontsInFile = True
private_font = PrivateFontPath(font, FontStyle.Regular, fonts_path)
document.PrivateFontList.Add(private_font)
it gives me error : PrivateFontList has no attribute 'Add'
I tried using append, it doen't work too
Please help me
Thanks