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

 

   
Notes
 
     

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.

 

   
Example
 
     

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

Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theDoc.FontSize = 48
For i = 1 to 8
  theDoc.Pos.X = i * 40
  theDoc.Pos.Y = i * 80

  theDoc.AddText "Pos = " & theDoc.Pos
Next
theDoc.Save "c:\docpos.pdf"


docpos.pdf

   

 

Browser Based Help. Published by chm2web software.