Loading thumbnails for pages

164 views
Skip to first unread message

Matt Parizeau

unread,
Sep 12, 2016, 5:48:42 PM9/12/16
to PDFTron WebViewer
Q:

Is there an easy way to get the thumbnails for a document so that we can put them in our own JavaScript control?

A:


For example:

var pageIndex = 0; // first page
var doc = readerControl.docViewer.getDocument();
doc
.loadThumbnailAsync(pageIndex, function(thumb) {
 
// thumb is an image or canvas element
});

Reply all
Reply to author
Forward
0 new messages