1

I am experimenting with the automation of some reports and I would like to stick to the corporate power point style (at least as much as possible). Using directly the available template with

ppt <- read_pptx("myTemplate.pptx")

is quite complicated at least for me.

Therefore I am trying to work with the standard "Office Theme" and I am trying to make it look close to the company template. I would like to be able to left align ctrTitle, subTitle and title types.

If I run the example below the title is centered. Does anyone know how to left align it? I could not find in the documentation.

Thank you in advance.

require(officer)

require(magrittr)

ppt = read_pptx()

ppt = ppt %>% add_slide(layout = "Title Slide", master = "Office Theme") 


ppt = ppt %>% ph_with_text(str = "Title String", type = "ctrTitle") 

print(ppt, target = "first_example.pptx") %>% invisible()
sebastian-c
  • 15,057
  • 3
  • 47
  • 93
  • why using the template is complicated? See https://davidgohel.github.io/officer/articles/powerpoint.html#master-layouts-and-slide-layouts: Designs and formatting properties of layouts and shapes (placeholders in a layout) are defined within the initial document. There is no R function to modify these values, they must be defined in the initial document. – David Gohel Sep 12 '17 at 11:28

0 Answers0