function AddRect(X, Y, Width, Height: Single): TPdfObject; overload; function AddRect(X, Y, Width, Height: Single; LineColor: TColor; LineWidth: Single = 1.0; LineOpacity: Single = 1.0; Filled: boolean = false; FillColor: TColor = clBlack; FillOpacity: Single = 1.0): TPdfObject; overload;
Description
Add a rectangle object to the current page at the specified position (in terms of PDF points).
Note: You must call ApplyChanges before saving to apply object changes to the document
PDF Page Points
Objects on a PDF page are specified in points that originate at the bottom-left, i.e. when X,Y = (0,0). The top-left of the page is specified by (PageWidth, PageHeight).
To convert PDF points to screen values, use PageToScr.