本文整理汇总了Python中com.aspose.slides.Presentation.getViewProperties方法的典型用法代码示例。如果您正苦于以下问题:Python Presentation.getViewProperties方法的具体用法?Python Presentation.getViewProperties怎么用?Python Presentation.getViewProperties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.aspose.slides.Presentation
的用法示例。
在下文中一共展示了Presentation.getViewProperties方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from com.aspose.slides import Presentation [as 别名]
# 或者: from com.aspose.slides.Presentation import getViewProperties [as 别名]
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithPresentation/Zoom/'
# Create an instance of Presentation class
pres = Presentation()
# Setting View Properties of Presentation
pres.getViewProperties().getSlideViewProperties().setScale(50) # zoom value in percentages for slide view
pres.getViewProperties().getNotesViewProperties().setScale(50) # .Scale = 50 //zoom value in percentages for notes view
# Save the presentation as a PPTX file
save_format = SaveFormat
pres.save(dataDir + "Zoom.pptx", save_format.Pptx)
print "Set zoom value, please check the output file."