Slide layout properties
Detailed information about the placeholders on the slide layouts (label, position, etc.). See Value section below for more info.
layout_properties(x, layout = NULL, master = NULL)
x
: an rpptx
objectlayout
: slide layout name. If NULL
, returns all layouts.master
: master layout name where layout
is located. If NULL
, returns all masters.Returns a data frame with one row per placeholder and the following columns:
master_name
: Name of master (a .pptx
file may have more than one)name
: Name of layouttype
: Placeholder typetype_idx
: Running index for phs of the same type. Ordering by ph position (top -> bottom, left -> right)id
: A unique placeholder id (assigned by PowerPoint automatically, starts at 2, potentially non-consecutive)ph_label
: Placeholder label (can be set by the user in PowerPoint)ph
: Placholder XML fragment (usually not needed)offx
,offy
: placeholder's distance from left and top edge (in inch)cx
,cy
: width and height of placeholder (in inch)rotation
: rotation in degreesfld_id
is generally stored as a hexadecimal or GUID valuefld_type
: a unique identifier for a particular fieldx <- read_pptx() layout_properties(x = x, layout = "Title Slide", master = "Office Theme") layout_properties(x = x, master = "Office Theme") layout_properties(x = x, layout = "Two Content") layout_properties(x = x)
Other functions for reading presentation information: annotate_base()
, color_scheme()
, doc_properties()
, layout_summary()
, length.rpptx()
, plot_layout_properties()
, slide_size()
, slide_summary()
Useful links