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

Returns the number of pages of a PDF.

C#
public int PdfReaderGetPageCount(
    int hPdf
);
Visual Basic
Public Function PdfReaderGetPageCount(
    ByVal hPdf As Integer
) As Integer
Parameters
Parameters 
Description 
hPdf 
A PDF handle returned by the PdfReaderLoadFromFile or the PdfReaderLoadFromStream function. 
Returns

The number of pages of the PDF. If 0, you can use the GetStat() function to determine the reason this function failed.

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