VB.NET PDF: How to HTML5 PDF Viewer PDF Create PDF Export File & Page Process PDF Read PDF Write Form Process Document Protect Annotation & Drawing PDF Print WPF PDF Viewer Work with Other SDKs Barcode Read Barcode Create OCR Twain
Page: Create Thumbnails
Home ›› XDoc.PDF ›› VB.NET PDF: Create Thumbnails

VB.NET PDF - Generate Thumbnail for PDF in VB.NET

Support Thumbnail Generation with Various Options for Quick PDF Navigation in VB.NET

Look for HTML5 PDF Editor?

EdgePDF: ASP.NET PDF Editor is the best HTML5 PDF Editor and ASP.NET PDF Viewer based on XDoc.PDF, JQuery, HTML5. It supports ASP.NET MVC and WebForms projects.

Advanced VB.NET PDF thumbnail generator control for Visual Studio .NET

Able to create thumbnails in .NET WinForms and ASP.NET webpage

Quick create navigation thumbnail from PDF page or images in VB.NET class program

Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint

Create thumbnails from multiple image formats, such as jpeg, png, gif, bmp, etc

Free PDF SDK library built on .NET framework 2.0

Online Visual Basic .NET source code is available

RasterEdge XDoc.PDF for .NET allows users to navigate through PDF document in VB.NET application. Generating thumbnail for PDF document is an easy work and gives quick access to PDF page and file, or even hyperlinks. This page shows you with demo code to tell how to create a thumbnail in VB.NET program, please see example as below.

How to VB.NET: Create Thumbnail for PDF

Add necessary references:









Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.PDF;

This is a  VB.NET sample code for PDF thumbnail creation. As you see, you are allowed to define and control the size of PDF thumbnail.

Dim inputFilePath As String = Program.RootPath + "\\" + "1.pdf"
Dim doc As PDFDocument = New PDFDocument(inputFilePath)
Dim page As PDFPage = doc.GetPage(0)

' Define the size of the thumbnail.
Dim thumbnailSize As Size = New Size(80, 100)

' Create the thumbnail.
Dim thumbnail As Bitmap = page.ConvertToImage(thumbnailSize)

' Do something ...