ReporteRs (version 0.7.7)

list_bookmarks: List Bookmarks from a Word Document

Description

List all bookmarks available in a docx object.

Usage

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

Run this code
doc = docx( title = "My example", template = file.path( 
  find.package("ReporteRs"), "templates/bookmark_example.docx") )
list_bookmarks( doc )

Run the code above in your browser using DataCamp Workspace