Presentation

Create or save a presentation in the active report session.

Syntax

pres=Presentation()

Arguments

name
The name of the presentation.
Type = string
pres.name=<'name'>
resolution
The presentation default resolution.
Type = string
pres.resolution = 'HD'/'UHD'/'Desktop'/'Medium'
savePDF
The presentation default resolution.
Type = method
Optional attributes:
range=<'range_syntax'>
pres.savePDF(<'pdfFile'>, range='2,5-7')
Note: PDF export is not supported on Linux.
savePPTX
The presentation default resolution.
Type = method
Optional attributes:
open=<True/False> (Default False)
mode=<'write'/'append'/'prepend'> (Default 'write')
range=<'range_syntax'>
pres.savePPTX(<'pptFile'>,open=True,mode='append', range='2,5-7')
session
The active session.
Type = object
sesObj = pres.session
setAttributes()
Set multiple attributes simultaneously.
Type = method
pres.setAttributes(name=<name>,workDir=<'workDir'>,session='ReportSession1')
size
The active session.
Type = method
pres.size(<'16:9', '4:3'>)
template
The presentation template.
Type = string
pres.template=<'template_file'>

Example

templatefile = os.path.join(src_path, "data", "pptTemplate.pptx")
outfile = os.path.join(os.path.expanduser("~"), "Documents", "alllayout.pptx").replace("\\","/")
pres = Presentation()
pres.template=templatefile
pres.resolution = 'UHD'
pres.savePPTX(outfile, open=True, mode='append', range='2,5-7')