Closed muranyia closed 7 years ago
Thanks,
This is a known issue. https://github.com/davidgohel/rvg/blob/master/R/dml_docx.R#L26
That's why body_add_vg
is not documented nor mention here:
https://davidgohel.github.io/officer/articles/offcran/graphics.html#word-documents-and-graphics
So far, tests has been made with outputs from grDevices::png(), grDevices::jpeg() and devEMF::emf(). Enhanced metafile graphics produced by package devEMF seem to be the best solution to have vector graphics within Word document.
I have added an extra note here to make it more clear: https://github.com/davidgohel/rvg/blob/master/R/body_add_vg.R#L10
I'm having problems with some
tableGrob
tables added to a document usingbody_add_vg()
. The simplest way I can reliable reproduce this is by setting the table wider than the available width in between the margins:Or use tablecontent.csv.zip and it will break also when it fits between the margins. The top and the bottom of the table are also clipped: