save a flextable as an image and return the corresponding raster. This function has been implemented to let flextable be printed on a ggplot object.
as_raster(x, zoom = 2, expand = 2, webshot = "webshot")
a flextable object
parameters used by
webshot package as a scalar character, one of "webshot" or "webshot2".
This function requires packages: webshot and magick.