|
The following code adds two blocks of text to a document. The first
block is left aligned and the second is right aligned. Before adding
the text we change the current rectangle and frame it so that you
can see how the text is aligned.
Set theDoc = Server.CreateObject("ABCpdf6.Doc")
theDoc.FontSize = 96
theDoc.Rect.Magnify 1.0, 0.5
theDoc.Rect.Inset 40, 40
theDoc.FrameRect
theDoc.AddText "Left justified text..."
theDoc.Rect.Move 0, theDoc.Rect.Height + 80
theDoc.FrameRect
theDoc.HPos = 1.0
theDoc.AddText "Right justified text..."
theDoc.Save "c:\mypdfs\dochpos.pdf"

dochpos.pdf
|