“Preview of single page slide in SharePoint document with Microsoft Graph API”

huangapple go评论59阅读模式
英文:

Preview of single page\slide in sharepoint document with Microsoft Graph Api

问题

在 SharePoint 中,借助 Microsoft Graph API,可以生成完整文件(如 docx、pptx)的预览。但是否有可能获取文档中有多少页/幻灯片的数据,并仅生成到单个页/幻灯片的预览链接(不一定是第一页,而是任何一页,否则我可以使用缩略图)?

英文:

In sharepoint with help of Microsoft Graph Api it's possible to generate preview of full file (like docx, pptx) https://learn.microsoft.com/en-us/graph/api/driveitem-preview?view=graph-rest-1.0

But is there is a possibility to get data about how many pages\slides in document and generate preview link only to a single page\slide (not exactly to 1st, but to any, otherwise I could use thumbnails)?

答案1

得分: 1

pptx文档的属性应包含内容部分的Slides属性。您可以通过使用Properties方法的REST API调用检索该值。

以下是这种请求的示例(在Power Automate云流中)。

“Preview of single page slide in SharePoint document with Microsoft Graph API”

“Preview of single page slide in SharePoint document with Microsoft Graph API”

英文:

The doc properties of a pptx should contain a Slides property in the Content section. You could retrieve that value via a REST API call which uses the Properties method.

Below is an example of such a request (in a Power Automate cloud flow).

“Preview of single page slide in SharePoint document with Microsoft Graph API”

“Preview of single page slide in SharePoint document with Microsoft Graph API”

huangapple
  • 本文由 发表于 2023年5月10日 23:34:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/76220290.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定