Make a correctly formatted block of text defining a bookmark in pdftk format

make_bookmark_text(title, level, page)

Arguments

title

The title of the bookmark

level

The level of the bookmark (1 is the highest)

page

Absolute page that this refers to

Value

String that can be written to bookmarks file

See also

Examples

make_bookmark_text('Figure 1',3,20)
#> [1] "BookmarkBegin\nBookmarkTitle: Figure 1\nBookmarkLevel: 3\nBookmarkPageNumber: 20"