GetWidth

Description

Gets the width of the PDF page.

Applies to

PDFPage object

Syntax

GetWidth()

Return value

Double. The unit is point (pt). The width of the current page.

Usage

Call the function to get the width of the PDFPage object.

Examples

The following example gets the page height and width:

double ld_h, ld_w
//Get the page height
ld_h = lpdf_page.getheight()
//Get the page width
ld_w = lpdf_page.getwidth()

See also

AddContent

Clone

GetContent

GetContentCount

GetHeight

ImportContent

IndexOf

RemoveContent

SetHeight

SetPageSize

SetWidth