R/grid_grobs.R
dim.flextableGrob.Rd
returns the optimal width and height for the grob, according to the grob generation parameters.
# S3 method for class 'flextableGrob' dim(x)
a flextableGrob object
a named list with two elements, width and height. Values are expressed in inches.
width
height
ftab <- flextable(head(iris)) gr <- gen_grob(ftab) dim(gr) #> $width #> [1] 5.065769 #> #> $height #> [1] 1.813395 #>