go-pdf/fpdf

PDF Document Properties are garbled

lordofscripts opened this issue · 0 comments

After creating the FPDF object I set certain things like:

pdf.SetKeywords("one, two, three", false)
pdf.SetSubject("export of metadata", true)
pdf.SetTitle("Test document", false)
pdf.SetAuthor("John doe", false)

But as you can see from the image below, when viewing the document some of those properties are either garbled or empty. Even the title is garbled. It doesn't matter if I set the UTF8 flag to true or false.

IMG20240412133203.jpg