to_rtf function

Convert officer objects to RTF

Convert officer objects to RTF

Convert an object made with package officer to RTF.

to_rtf(x, ...)

Arguments

  • x: object to convert to RTF. Supported objects are:

    • ftext()
    • external_img()
    • run_autonum()
    • run_columnbreak()
    • run_linebreak()
    • run_word_field()
    • run_reference()
    • run_pagebreak()
    • hyperlink_ftext()
    • block_list()
    • fpar()
  • ...: Arguments to be passed to methods

Returns

a string containing the RTF code

See Also

Other functions for officer extensions: docx_reference_img(), fortify_location(), get_reference_value(), opts_current_table(), shape_properties_tags(), str_encode_to_rtf(), to_html(), to_pml(), to_wml(), wml_link_images()