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

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

C#
public Double PdfReaderGetPageWidth(
    int hPdf
);
Visual Basic
Public Function PdfReaderGetPageWidth(
    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 width in inches: Width = PdfReaderGetPageWidth(hPDF) / 72
  • To get the page width in centimeters: Width = PdfReaderGetPageWidth(hPDF) / 72 / 2.54

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