Hello,
I just want to ask if there is a way that we can retrieve the thumbnail of the files being previewed programmatically? We want to use those thumbnails as a profile image. Below is a sample link of a file thumbnail.
https://testsite.com/document-viewer/GetDocumentPageImage?path=temp%5cS%5cTest_PPTFILE.pdf&width=150&quality=20&usePdf=True&useHtmlBasedEngine=True&rotate=False&locale=en-US&pageIndex=0
Hello,
Thank you for the request. Unfortunately GroupDocs.Viewer doesn’t have a special method to obtain document thumbnails. But you can try to get them via the URL from your request. You should do next:
- Generate document cache as described here.
- Use the URL to get thumbnails with such header parameters:
http://prntscr.com/90ouf1
Where:
path – file name
pageindex – page number
useHtmlBasedEngine:False – should be false always.
Best regards.