slide.layouts.pptx: Get layout names of a pptx document

Description Usage Arguments Details See Also Examples

View source: R/slide.layouts.pptx.R

Description

Get layout names that exist into the template used when pptx has been created.

Usage

1
2
## S3 method for class 'pptx'
slide.layouts(doc, layout, ...)

Arguments

doc

Object of class pptx to extract layout names from.

layout

optional single string value, one of the layout names

...

further arguments, not used.

Details

Available names are layout names of the template document (e.g. Title and Content , Two Content, etc.). If layout is specified, the layout representation will be produced in a plot. This can be useful to check available shapes.

See Also

pptx, addSlide.pptx, slide.layouts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
if( check_valid_java_version() ){

doc.filename = "addFlexTable_example.pptx"
doc = pptx( title = "title" )
layouts = slide.layouts(doc)
layouts

# loop over layout names to plot each slide style
for(i in layouts ){
  slide.layouts(doc, i )
  title(sub = i )
}

}

davidgohel/ReporteRs documentation built on Dec. 4, 2018, 5:10 p.m.