How do I programmatically create thumbnails for pages in PDFs?
by Conor | December 10, 2012
Creating thumbnails for PDFs using Foxit Quick PDF Library is simple. Simply use the functions listed in the below order: RenderPageToString AddImageFromString SetPageThumbnail Here is some C# sample code demonstrating how this works: QP.LoadFromFile("original.pdf"); byte[] ImageContent = QP.RenderPageToString(96, 1, 0); int ImageID = QP.AddImageFromString(ImageContent, 1); QP.SelectImage(ImageID); QP.SelectPage(1); QP.SetPageThumbnail(); QP.SaveToFile("original_with_thumbnail.pdf"); In this sample I’ve created the […]
Keep reading