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)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().
Other functions for reading presentation information:
annotate_base(),
color_scheme(),
doc_properties(),
layout_properties(),
layout_summary(),
length.rpptx(),
plot_layout_properties(),
slide_size()
my_pres <- read_pptx()
my_pres <- add_slide(my_pres, "Title and Content")
my_pres <- ph_with(my_pres, format(Sys.Date()),
location = ph_location_type(type="dt"))
my_pres <- add_slide(my_pres, "Title and Content")
my_pres <- ph_with(my_pres, iris[1:2,],
location = ph_location_type(type="body"))
slide_summary(my_pres)
#> type id ph_label offx offy cx
#> 1 body 798df4c1-256b-41cf-9b4e-a38f28b63672 Content Placeholder 2 NA NA NA
#> cy rotation fld_id fld_type
#> 1 NA NA <NA> <NA>
#> text
#> 1 {5C22544A-7EE6-4342-B048-85BDC9FD1C3A}Sepal.LengthSepal.WidthPetal.LengthPetal.WidthSpecies5.13.51.40.2setosa4.93.01.40.2setosa
slide_summary(my_pres, index = 1)
#> type id ph_label offx offy
#> 1 dt b78d3ec7-6074-4382-baf2-b10b695a7a5c Date Placeholder 3 0.5 6.951389
#> cx cy rotation fld_id fld_type text
#> 1 2.333333 0.3993056 NA <NA> <NA> 2025-09-16