How do I get thumbnails for my document collection?

Skip to first unread message


Nov 1, 2013, 8:22:50 PM11/1/13
Hi, I am using DocPub to optimize PDF for viewing in WebViewer.
I would also like to display a list of document thumbnails in my web app.
I see that PDFNet SDK includes PDFDraw class that I can convert PDF/XPS/XOD pages to thumbnails, however I am using DocPub.
Is there any other way to get thumbs for my XOD files?
XOD files by default include thumbnails for all pages so there is no need to generate or render additional images.
To obtain generated thumbnails you can:
a) From WebViewer (in JavaScript): call CoreControls.Document.LoadThumbnailAsync() function.
b) Fetch thumb from XOD on the server side. Since XOD files are just zip files, the thumbnail can be extracted from the /Thumbs folder. For example /Thumbs/1.png would be the cover page.
An added benefit is that you do not need to waste CPU resources generating thumbs two times.
Reply all
Reply to author
0 new messages