Skip to main content

GUI_pagethumbs

Connection callback that is called when a file is loaded. Used to display page image thumbnails.

Additional Methods

  • getHeight(): Returns the height of the canvas.
  • hasmarkup(page): Returns true if the page has markup, false if not.

Callback Parameters

  • thumbnails: array of thumbnail objects: Array of thumbnail objects.
Thumbnail {
thumbnail: canvas element holding the complete thumbnail,
Image: html image of the thumbnail,
canvasSource: canvas element holding the page image,
source: string containing URL to a thumbnail image,
name: string containing page name,
number: 0 indexed page number,
displaynum: 1 indexed page number,
draw: function used to draw the thumbnail,
}

Example


RxCore.GUI_pagethumbs.connect(function(thumbnails){
console.log("thumbnail for page ",thumbnails[0].number);

});