
Last chance! 50% off unlimited learning
Sale ends in
add a flextable as a new shape in the current slide.
ph_with_flextable(x, value, type = "body", index = 1)ph_with_flextable_at(x, value, left, top)
a pptx device
flextable
object
placeholder type
placeholder index (integer). This is to be used when a placeholder type is not unique in the current slide, e.g. two placeholders with type 'body'.
location of flextable on the slide
# NOT RUN {
library(officer)
ft <- flextable(head(mtcars))
# }
# NOT RUN {
doc <- read_pptx()
doc <- add_slide(doc, layout = "Title and Content",
master = "Office Theme")
doc <- ph_with_flextable(doc, value = ft, type = "body")
doc <- ph_with_flextable_at(doc, value = ft, left = 4, top = 5)
print(doc, target = "test.pptx" )
# }
Run the code above in your browser using DataLab