Hi, I’m using HTML2PDF go module to convert html string to pdf file. My html string contains some korean language also. This utf-8 character is not supported and showing like attached document. Please let me know if anything can be done. I’m using following piece of code which seems not working for utf-8 characters.
doc = NewPDFDoc()
converter = NewHTML2PDF()
// Our HTML data
html := "<html><body><h1>Heading</h1><p>Paragraph.</p></body></html>"
// Add html data
converter.InsertFromHtmlString(html)
// Note, InsertFromHtmlString can be mixed with the other Insert methods.
if converter.Convert(doc){
doc.Save(outputPath + "_04.pdf", uint(SDFDocE_linearized))
}