Documentation Index
Fetch the complete documentation index at: https://mintlify.com/davidgohel/flextable/llms.txt
Use this file to discover all available pages before exploring further.
padding() controls the space between cell content and cell borders. All padding values are in points (pts) by default.
Function signature
Parameters
A
flextable object.Row selector. Accepts integer indices, a one-sided formula (e.g.,
~ col > 5), or a logical vector. NULL selects all rows in the specified part.Column selector. Accepts integer indices, column names, or a formula.
NULL selects all columns.A single value (in points) applied as shortcut for all four sides: top, bottom, left, and right. Individual side arguments take precedence over this shortcut if both are supplied.
Top padding in points.
Bottom padding in points.
Left padding in points.
Right padding in points.
Which part of the table to target:
"body", "header", "footer", or "all".Return value
The modifiedflextable object.
Examples
Set uniform top padding across all parts:In PDF output, only
padding.left and padding.right are applied. padding.top and padding.bottom are ignored due to LaTeX limitations. For global horizontal spacing in PDF, use set_table_properties(opts_pdf = list(tabcolsep = 1)).See also
align()— set text alignmentvalign()— set vertical alignmentstyle()— apply multiple formatting properties at onceset_table_properties()— set PDF column spacing withtabcolsep