本文整理汇总了Python中com.aspose.slides.Presentation.getHyperlinkQueries方法的典型用法代码示例。如果您正苦于以下问题:Python Presentation.getHyperlinkQueries方法的具体用法?Python Presentation.getHyperlinkQueries怎么用?Python Presentation.getHyperlinkQueries使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.aspose.slides.Presentation
的用法示例。
在下文中一共展示了Presentation.getHyperlinkQueries方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from com.aspose.slides import Presentation [as 别名]
# 或者: from com.aspose.slides.Presentation import getHyperlinkQueries [as 别名]
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithSlidesInPresentation/Hyperlinks/'
# Instantiate Presentation class that represents the presentation file
pres = Presentation(dataDir + 'demo.pptx')
# Removing the hyperlinks from presentation
pres.getHyperlinkQueries().removeAllHyperlinks()
# Saving the presentation
save_format = SaveFormat
pres.save(dataDir + "Hyperlinks.pptx", save_format.Pptx)
print "Removed hyperlinks successfully, please check the output file."