|
Here we add two chunks of text. The default text is added in black
and the magnified text is drawn in red. We specify the middle of
the document as the anchor point which means that all scaling is
relative to the middle of the document. Our horizontal scale factor
is larger than our text has been stretched horizontally somewhat.
Set theDoc = Server.CreateObject("ABCpdf6.Doc")
theDoc.Rect.Inset 200, 200
theDoc.FontSize = 48
theDoc.AddText "Normal"
theDoc.FrameRect
theDoc.Rect.Move 0, -100
theDoc.Color = "255 0 0" ' red
theDoc.Transform.Magnify 2, 1.5, 302, 396
theDoc.AddText "Magnified"
theDoc.FrameRect
theDoc.Save "c:\mypdfs\transformmagnify.pdf"

transformmagnify.pdf
|