list_bookmarks: List Bookmarks from a Word Document

Description Usage Arguments Value See Also Examples

View source: R/text_extract.R

Description

List all bookmarks available in a docx object.

Usage

1
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

1
2
3
4
5
6
7
if( check_valid_java_version() ){

doc <- docx( title = "My example", template = file.path(
  system.file(package = "ReporteRs"), "templates/bookmark_example.docx") )
list_bookmarks( doc )

}

davidgohel/ReporteRs documentation built on March 23, 2020, 11 p.m.