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

Returns the page height in PDF point unit of the selected page of a PDF.

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

The page width. Returns 0 if failed: you can use the GetStat() function to determine the reason.

1 point = 1/72 inch.

  • To get the page height in inches: Height = PdfReaderGetPageHeight(hPDF) / 72
  • To get the page height in centimeters: Height = PdfReaderGetPageHeight(hPDF) / 72 / 2.54

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