Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Common
Collapse All

This property gets or sets a thumbnail preview of the current page.

Syntax

LONG Thumbnail { get; set; }
Value
Index of the thumbnail

Remarks

A PDF document may define thumbnail images representing the contents of its pages in miniature form. A viewer application can then display these images on the screen, allowing the user to navigate to a page by clicking a thumbnail image with the mouse. This property indicates what image appears as a thumbnail. The value for this property is returned from a method such as AddImageFromFile.

Example

How to set custom thumbnail for PDF page

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.ViewerMode := mtUseThumbnails;
th := PDF.AddImageFromFile('thumb1.jpg');
PDF.NewPage;
PDF.Thumbnail := th; { set thumbnail for 2nd page }
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->ViewerMode = mtUseThumbnails;
long th = PDF->AddImageFromFile("thumb1.jpg");
PDF->NewPage();
PDF->Thumbnail = th; // set thumbnail for 2nd page
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.ViewerMode = ModeType.mtUseThumbnails;
long th = PDF.AddImageFromFile("thumb1.jpg");
PDF.NewPage();
PDF.Thumbnail = th; // set thumbnail for 2nd page
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.ViewerMode = 2 'ModeType.mtUseThumbnails
th = PDF.AddImageFromFile("thumb1.jpg")
PDF.NewPage
PDF.Thumbnail = th ' set thumbnail for 2nd page
PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots