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);
// 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