XDoc.PDF
Features
Tech Specs
How-to VB.NET
Pricing
How to Start Convert PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

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:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Raster.dll


  RasterEdge.XDoc.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


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 ...