officer (version 0.3.3)

ph_location_label: location of a named placeholder

Description

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

Usage

ph_location_label(ph_label, ...)

Arguments

ph_label

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

...

unused arguments

Details

The location of the bounding box associated to a placeholder within a presentation 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, there is attribute ph_label 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_add_fpar, or ph_add_text.

See Also

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

Examples

Run this code
# NOT RUN {
library(magrittr)
read_pptx() %>%
  add_slide(layout = "Title and Content", master = "Office Theme") %>%
  ph_with("Hello world",
    location = ph_location_label(ph_label = "Content Placeholder 2") ) %>%
  print(target = tempfile(fileext = ".pptx") )
# }

Run the code above in your browser using DataCamp Workspace