save a flextable as a png, pdf or jpeg image.
Image generated with package 'webshot' or package 'webshot2'.
Package 'webshot2' should be prefered as 'webshot' can have
issues with some properties (i.e. bold are not rendered for some users).
The image is coming from a screenshot of the 'HTML' output.
save_as_image()
is a tool to make life easier for users.
Nevertheless, the features have some limitations that can't
be solved with flextable because they are not related to
flextable:
png
does support transparency,
jpeg
does not support transparency,
webshot2 does not allow transparent background,
webshot does allow transparent background.