Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

GetImageUrl Method

Show in webframe
Example 
Gets a URL to the raster image for this page.
Syntax
 function Leadtools.Documents.DocumentPage.getImageUrl()

Return Value

TypeDescription
string A string representing the URL to the raster image for this page.
Remarks

For more information on this method or to load the image through the Documents Library, see GetThumbnailImageElement.

Refer to Image Loading Using LEADTOOLS Documents Library and Document Loading Using LEADTOOLS Documents Library for more information.

Example
// Load a new document
var url = "http://demo.leadtools.com/images/pdf/leadtools.pdf";
console.log("Loading document ...");
lt.Documents.DocumentFactory.loadFromUri(url, null)
   .done(function (doc) {
      console.log("Done.");
   
      // Just get the URL, to show it can be loaded anywhere
      var page = doc.pages[0];
      var pageUrl = page.getImageUrl();
   
      // Instead of loading through the Documents Library, use an img
      var img = document.createElement("img");
      img.onload = function () {
         console.log("Loaded!")
         document.body.appendChild(img);
      }
      img.onerror = function () {
         console.log("Failed.");
      }
      console.log("Loading: " + pageUrl);
      img.src = pageUrl;
   
   })
   .fail(function (jqXHR, statusText, errorThrown) {
      alert("Error loading document " + errorThrown);
   });
See Also

Reference

DocumentPage Object
DocumentPage Members

Error processing SSI file