public HPDF_STATUS rectangle(
    float x, 
    float y, 
    float width, 
    float height)

Appends a rectangle to the current path.

Graphics Mode

Before - GMode.pageDescription or GMode.pathObject. After - GMode.pathObject.

Parameters

x

The x coordinate of lower-left point of the rectangle.

y

The y coordinate of lower-left point of the rectangle.

width

The width of the rectangle.

height

The height of the rectangle.