text_extract

0th

Percentile

Simple Text Extraction From a Word Document

Provides a simple method to get text from a docx document. It returns a character vector containing all chunk of text found in the document.

Usage
text_extract(x, body = TRUE, header = TRUE, footer = TRUE, bookmark)
Arguments
x

docx object

body

specifies to scan document body

header

specifies to scan document header

footer

specifies to scan document footer

bookmark

a character value ; id of the Word bookmark to scan.

Value

a character vector

See Also

docx, list_bookmarks

Aliases
  • text_extract
Examples
# NOT RUN {
doc <- docx( title = "My example", template = file.path(
  system.file(package = "ReporteRs"), "templates/bookmark_example.docx") )
text_extract( doc )
text_extract( doc, header = FALSE, footer = FALSE )
text_extract( doc, bookmark = "author" )
# }
Documentation reproduced from package ReporteRs, version 0.8.9, License: GPL-3

Community examples

Looks like there are no examples yet.