PDFPAGE_Rectangle
IPDFDocument3 :: PDF page methods

See Also Example
Collapse All

This method creates a rectangle path.

Syntax

HRESULT PDFPAGE_Rectangle (
DOUBLE left,
DOUBLE top,
DOUBLE right,
DOUBLE bottom
)
Parameters
left
X coordinate of the top-left corner of the bounding rectangle

top
Y coordinate of the top-left corner of the bounding rectangle

right
X coordinate of the bottom-right corner of the bounding rectangle

bottom
Y coordinate of the bottom-right corner of the bounding rectangle

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method draws a rectangle with left-top corner at (left, top) and right-bottom corner at (right, bottom).

Equivalent in new interface: IPDFDocument4::DrawRectangle.

Example

Rectangle Example

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_Rectangle(10, 10, 310, 210);
PDF.PDFPAGE_Stroke;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_Rectangle(10, 10, 310, 210);
PDF->PDFPAGE_Stroke();
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_Rectangle(10, 10, 310, 210);
PDF.PDFPAGE_Stroke();
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_Rectangle 10, 10, 310, 210
PDF.PDFPAGE_Stroke
PDF.EndDoc

See Also

Reference