Overview
r2rtf
had an experimental internal function
r2rtf:::rtf_convert_format
to convert RTF format to PDF,
DOCX, or HTML. This feature requires LibreOffice >= 7.1 and was only
tested in a Linux environment.
By default, r2rtf:::rtf_convert_format
convert RTF file
to PDF format. The PDF file will be saved in the same folder with same
file name by default.
In example below, ae_example.pdf
will be created in the
same folder.
r2rtf:::rtf_convert_format(input = "rtf/ae_example.rtf")
- Multiple files can be provided as input.
r2rtf:::rtf_convert_format(input = list.files("rtf", pattern = "*.rtf"))
- The
format
argument allow use to specify output format aspdf
,docx
, orhtml
.
r2rtf:::rtf_convert_format(input = "rtf/ae_example.rtf", format = "html")