slide_summary {officer} | R Documentation |
get content and positions of current slide into a data.frame. Data for any tables, images, or paragraphs are imported into the resulting data.frame.
slide_summary(x, index = NULL)
x |
rpptx object |
index |
slide index |
The column id
of the result is not to be used by users.
This is a technical string id whose value will be used by office
when the document will be rendered. This is not related to argument
index
required by functions ph_with_zzz
.
library(magrittr) my_pres <- read_pptx() %>% add_slide(layout = "Two Content", master = "Office Theme") %>% ph_with_text(type = "dt", str = format(Sys.Date())) %>% add_slide(layout = "Title and Content", master = "Office Theme") slide_summary(my_pres) slide_summary(my_pres, index = 1)