diff options
Diffstat (limited to 'fpdf.go')
-rw-r--r-- | fpdf.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2183,6 +2183,9 @@ func (f *Fpdf) Bookmark(txtStr string, level int, y float64) { if y == -1 { y = f.y } + if f.isCurrentUTF8 { + txtStr = utf8toutf16(txtStr) + } f.outlines = append(f.outlines, outlineType{text: txtStr, level: level, y: y, p: f.PageNo(), prev: -1, last: -1, next: -1, first: -1}) } |