You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > PDF Reader > PdfReaderGetPageThumbnail Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PdfReaderGetPageThumbnail Method

Creates a High Quality thumbnail (returns a GdPicture image) of custom size of the current page of a PDF. 

This function fits the image thumbnail within a rectangle of specified dimensions having a specified background color.

C#
public int PdfReaderGetPageThumbnail(
    int hPdf, 
    int Width, 
    int Height, 
    Color BackColor
);
Visual Basic
Public Function PdfReaderGetPageThumbnail(
    ByVal hPdf As Integer, 
    ByVal Width As Integer, 
    ByVal Height As Integer, 
    ByVal BackColor As Color
) As Integer
Parameters
Parameters 
Description 
hPdf 
A PDF handle returned by the PdfReaderLoadFromFile or the PdfReaderLoadFromStream function.  
Width 
The width of the thumbnail to create.  
Height 
The height of the thumbnail to create.  
BackColor 
Color Object. Background color of the thumbnail.  
Page 
The page of the document.  
Returns

GdPicture Image Identifier. The Image thumbnail.

To delete the created GdPicture image from the memory you must use the ReleaseGdPictureImage() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.