remove_docx_bookmarks: Remove 'Bookmark References' from a .docx file

Description Usage Arguments Details Value

Description

'Bookmark References' are MS Word's internal version of header I.D.s, for linking to or navigating documents. Pandoc adds Bookmark References to all .docx output to try and be helpful. Unfortunately, Google Docs renders these with big blue ugly ribbons by the side of each header. This function strips them out of a given input file.

Usage

1

Arguments

input_file

The .docx file you'd like the bookmark references stripped from

Details

MS Word files are zipped XML. The file is unzipped, and a regular expression is used to parse and remove the offending bookmarks from the XML. Then everything is zipped back together again.

Value

TRUE (invisibly) if it worked


brendan-r/googdown documentation built on May 13, 2019, 5:09 a.m.