Type Default Value Read Only Description
XPoint The top left of the current rectangle. Yes The current drawing position.




This property determines the current drawing position. This is used by the AddText method.

When you change the Page or Rect properties, the Pos is automatically reset to the top left of the current Rect. After adding text using the AddText method, the Pos is updated to point to the next text insertion position - just after the last drawn character.




The following code creates a PDF document with text positioned at a number of different points within it.

Set theDoc = Server.CreateObject("ABCpdf10.Doc")
theDoc.FontSize = 48
For i = 1 to 8
  theDoc.Pos.X = i * 40
  theDoc.Pos.Y = i * 80
  theDoc.AddText "Pos = " & theDoc.Pos
theDoc.Save "c:\mypdfs\docpos.pdf"