Read layout placeholders
read_layout_placeholders(
pptx,
layout,
keep_all = FALSE,
error_call = current_env()
)A PowerPoint wrapped in a <pptx_container> object. see load_pptx()
layout
if FALSE, only keep non missing placeholders
The execution environment of a currently
running function, e.g. caller_env(). The function will be
mentioned in error messages as the source of the error. See the
call argument of abort() for more information.
pptx <- example_pptx()
read_layout_placeholders(pptx, layout = "Title Slide")
#> # A tibble: 5 × 11
#> layout_file layout_name id offx offy cx cy ph_type ph ph_id
#> <chr> <chr> <int> <dbl> <dbl> <dbl> <dbl> <chr> <glu> <chr>
#> 1 slideLayout1.xml Title Slide 2 0.75 2.33 8.5 1.61 ctrTit… <p:p… NA
#> 2 slideLayout1.xml Title Slide 3 1.5 4.25 7 1.92 subTit… <p:p… 1
#> 3 slideLayout1.xml Title Slide 4 0.5 6.95 2.33 0.399 dt <p:p… 10
#> 4 slideLayout1.xml Title Slide 5 3.42 6.95 3.17 0.399 ftr <p:p… 11
#> 5 slideLayout1.xml Title Slide 6 7.17 6.95 2.33 0.399 sldNum <p:p… 12
#> # ℹ 1 more variable: layout_ph_name <chr>