Skip to contents

Eval a shape location against the current slide. This function is to be used to add custom openxml code. A list is returned, it contains informations width, height, left and top positions and other informations necessary to add a content on a slide.

Usage

fortify_location(x, doc, ...)

Arguments

x

a location for a placeholder.

doc

an rpptx object

...

unused arguments

Examples

doc <- read_pptx()
doc <- add_slide(doc, layout = "Title and Content",
  master = "Office Theme")
fortify_location(ph_location_fullsize(), doc)
#> $width
#> [1] 10
#> 
#> $height
#> [1] 7.5
#> 
#> $left
#> [1] 0
#> 
#> $top
#> [1] 0
#> 
#> $ph_label
#> [1] ""
#> 
#> $ph
#> [1] NA
#> 
#> $type
#> [1] "body"
#> 
#> $rotation
#> [1] 0
#> 
#> $fld_id
#> [1] NA
#> 
#> $fld_type
#> [1] NA
#>