List all bookmarks available in a docx object.

list_bookmarks(x, body = TRUE, header = TRUE, footer = TRUE)

Arguments

x

a docx object

body

specifies to scan document body

header

specifies to scan document header

footer

specifies to scan document footer

Value

a character vector

See also

docx, text_extract

Examples

doc <- docx( title = "My example", template = file.path( system.file(package = "ReporteRs"), "templates/bookmark_example.docx") ) list_bookmarks( doc )
#> [1] "PLOT" "DATA" "AUTHOR" "REVIEWER"