Skip to content

Commit

Permalink
Merge branch 'SuddenGunter-bookmarks-utf16'
Browse files Browse the repository at this point in the history
  • Loading branch information
jung-kurt committed Sep 28, 2019
2 parents 648efaf + 2540472 commit 291a975
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fpdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}

Expand Down

0 comments on commit 291a975

Please sign in to comment.