html_2_pandoc: Convert HTML to a Docx File

Description Usage Arguments Value

Description

This function uses pandoc and tempfiles to create a docx version of an HTML document. The HTML is prepended and appended with <!doctype html><html><body> and </body></html>. Then it is saved to a tempfile, and then pandoc converts it to a .docx file. Finally, the path to the .docx file is returned.

Usage

1
html_2_pandoc(html, file_name, format, output_dir)

Arguments

html

an html body contents string. Do not include the <html><body> ... tags, the html parameter will automatically have those kinds of tags added within this function.

output_dir

an optional parameter for specifying an output folder

Value

the path to the docx file created from converting the html.


ctesta01/QualtricsTools documentation built on May 14, 2019, 12:27 p.m.