Type Default Value Read Only Description

[Visual Basic]
n/a No The Thumbnail for the page




Each page can have a thumbnail image for quick preview purposes. This property allows to access such a thumbnail if it exists, or to assign such a thumbnail to a page if it does not.




This example shows how to create and embed thumbnails in a PDF document.

using (Doc doc = new Doc(), srcDoc = new Doc()) {
  doc.Rendering.DotsPerInch = 18;
  Page[] pages = doc.ObjectSoup.Catalog.Pages.GetPageArrayAll();
  foreach (Page page in pages) {
    doc.Page = page.ID;
    using (XImage xi = XImage.FromData(doc.Rendering.GetData(".jpg"), null))
      page.Thumbnail = PixMap.FromXImage(doc.ObjectSoup, xi);

[Visual Basic]
Sub ...
  Using doc As New Doc(), srcDoc As New Doc()
    doc.Rendering.DotsPerInch = 18
    Dim pages As Page() = doc.ObjectSoup.Catalog.Pages.GetPageArrayAll()
    For Each page As Page In pages
      doc.Page = page.ID
      Using xi As XImage = XImage.FromData(doc.Rendering.GetData(".jpg"), Nothing)
        page.Thumbnail = PixMap.FromXImage(doc.ObjectSoup, xi)
      End Using
  End Using
End Sub