0

I want to display the thumbnail of SharePoint image or pdf file. In Google Drive case from Thumbnaillink we are getting thumbnail URL. Like that is there any property or api is available in SharePoint?

1
  • 3
    Please elaborate your question more. Commented May 3, 2018 at 13:03

2 Answers 2

0

You can use the preview image feature of the Office Web Apps server:

For a document located here: https://yourServer//sites/training/Shared%20Documents/Report1.pdf

use:

https://yourServer/sites/training/_layouts/15/WopiFrame.aspx?sourcedoc=/sites/training/Shared%20Documents/Report1.pdf&action=imagepreview
2
  • using client object model how i can retrieve thumbnail url? Commented May 4, 2018 at 4:41
  • Directly from CSOM? I don't think so. Commented May 4, 2018 at 14:13
0

Microsoft added a thumbnail expression for this:

https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/formatting-syntax-reference#filepreview

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.