Make -merge-add-bookmarks work with UTF8 filenames
This commit is contained in:
parent
c0e818c3a5
commit
7f9bcc5ddf
|
@ -376,7 +376,7 @@ let add_bookmark_title filename use_title pdf =
|
||||||
in
|
in
|
||||||
let newmarks =
|
let newmarks =
|
||||||
{Pdfmarks.level = 0;
|
{Pdfmarks.level = 0;
|
||||||
Pdfmarks.text = title;
|
Pdfmarks.text = Pdftext.pdfdocstring_of_utf8 title;
|
||||||
Pdfmarks.target = Pdfdest.XYZ (Pdfdest.PageObject page1objnum, None, None, None);
|
Pdfmarks.target = Pdfdest.XYZ (Pdfdest.PageObject page1objnum, None, None, None);
|
||||||
Pdfmarks.isopen = false}
|
Pdfmarks.isopen = false}
|
||||||
::map (function m -> {m with Pdfmarks.level = m.Pdfmarks.level + 1}) marks
|
::map (function m -> {m with Pdfmarks.level = m.Pdfmarks.level + 1}) marks
|
||||||
|
|
Loading…
Reference in New Issue