Type Default Value Read Only Description
XRect The dimensions of the current page. Yes The current rectangle used for drawing operations.




This property determines the current rectangle. This is used by a number of operations including AddText, AddImage, FrameRect and FillRect.

The XRect object represents a rectangular area in two-dimensional space. The properties of the XRect object represent the bottom left and top right corners of the area.

AddText adds text within the current rectangle wrapping the text at the edges.

The AddImage methods add an image scaled to fill the current rectangle.

FrameRect frames the current rectangle, and FillRect fills the current rectangle.

When you change this property, the Pos property is reset to point to the top left of the Rect.




The following code creates a PDF document containing a number of concentric frames.

Set theDoc = Server.CreateObject("ABCpdf12.Doc")
theDoc.Rect = "50 50 550 550"
For i = 1 to 20
  theDoc.Rect.Inset 20, 20
theDoc.Save "c:\mypdfs\docrect.pdf"