ph_empty

0th

Percentile

add a new empty shape

add a new empty shape in the current slide.

Usage
ph_empty(x, type = "title", index = 1)

ph_empty_at(x, left, top, width, height, bg = "transparent", rot = 0)

Arguments
x

a pptx device

type

placeholder type

index

placeholder index (integer). This is to be used when a placeholder type is not unique in the current slide, e.g. two placeholders with type 'body'.

left, top

location of the new shape on the slide

width, height

shape size in inches

bg

background color

rot

rotation angle

Aliases
  • ph_empty
  • ph_empty_at
Examples
# NOT RUN {
fileout <- tempfile(fileext = ".pptx")
doc <- read_pptx()
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- ph_empty(x = doc, type = "title")

print(doc, target = fileout )

# demo ph_empty_at ------
fileout <- tempfile(fileext = ".pptx")
doc <- read_pptx()
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- ph_empty_at(x = doc, left = 1, top = 2, width = 5, height = 4)

print(doc, target = fileout )
# }
Documentation reproduced from package officer, version 0.1.5, License: GPL-3

Community examples

Looks like there are no examples yet.