ph_location_label

0th

Percentile

location of a named placeholder

The function will use the label of a placeholder to find the corresponding location.

Usage
ph_location_label(ph_label, newlabel = NULL, ...)
Arguments
ph_label

placeholder label of the used layout. It can be read in PowerPoint or with function layout_properties() in column ph_label.

newlabel

a label to associate with the placeholder.

...

unused arguments

Details

The location of the bounding box associated to a placeholder within a slide is specified with the left top coordinate, the width and the height. These are defined in inches:

left

left coordinate of the bounding box

top

top coordinate of the bounding box

width

width of the bounding box

height

height of the bounding box

In addition to these attributes, a label can be associated with the shape. Shapes, text boxes, images and other objects will be identified with that label in the Selection Pane of PowerPoint. This label can then be reused by other functions such as ph_location_label(). It can be set with argument newlabel.

See Also

Other functions for placeholder location: ph_location_fullsize, ph_location_left, ph_location_right, ph_location_template, ph_location_type, ph_location

Aliases
  • ph_location_label
Examples
# NOT RUN {
doc <- read_pptx()
doc <- add_slide(doc)
doc <- ph_with(doc, "Hello world",
  location = ph_location_label(ph_label = "Content Placeholder 2") )
print(doc, target = tempfile(fileext = ".pptx") )
# }
Documentation reproduced from package officer, version 0.3.6, License: GPL-3

Community examples

Looks like there are no examples yet.