Wraps FPDFPageObj_CreateNewRect + FPDFPage_InsertObject. The
new path describes the rectangle (x, y, x + width, y + height)
with an explicit close — it renders as a stroked / filled
rectangle once you set its draw mode and colors.
Arguments
- page
A
pdfium_pagefrompdf_page_load(). Parent doc must be readwrite.- x, y
Numeric scalars — bottom-left corner in PDF user-space points.
- width, height
Numeric scalars — rectangle dimensions.