save_flextable.Rd
This function saves a flextable object as a PDF file. The height of the table is calculated based on its aspect ratio if not explicitly provided.
save_flextable(ft, path, width = 7, height = NULL)
A flextable object to be saved as a PDF.
A character string specifying the file path for the output PDF.
A numeric value specifying the width of the PDF in inches (default: 7).
A numeric value specifying the height of the PDF in inches. If NULL, the height is calculated based on the aspect ratio of the flextable.
NULL. The function saves the flextable as a PDF file at the specified path.
ft <- print_flextable(mtcars[1:10, 1:3], num_col = 2, rowname_label = 'car')
if (FALSE) { # \dontrun{
save_flextable(ft, "table.pdf", width = 6, height = 4)
} # }