Type   Default Value   Read Only   Description
XTransform No transformation. No The current transformation for drawing.

 

   
Notes
 
     

This property determines the current world space transform. It affects any drawing using the AddText, AddImage, AddLine, FrameRect and FillRect methods.

Transforms are general operations which encompass rotation, translation, magnification and skewing or a combination of these. Note that the order in which transforms are applied is significant: a rotation followed by a translation is not the same as a translation followed by a rotation.

A world space transform is not same an object transform. If you specify a rotation of 45 degrees you are rotating yourself rather than the object. So if you wish to insert text rotated by 45 degrees you should specify a world space transform rotation of minus 45 degrees.

 

   
Example
 
     

The following code creates a PDF document and adds some text and a rectangle rotated at 45 degrees anti-clockwise around the middle of the document.

Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theText = "Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur. Hi omnes lingua, institutis, legibus inter se differunt. Gallos ab Aquitanis Garumna flumen, a Belgis Matrona et Sequana dividit."
theText = theText & vbCrLf & theText & vbCrLf & theText & vbCrLf
theDoc.Rect.Magnify 0.5, 0.5
theDoc.Rect.Position 151, 198
theDoc.FrameRect
theDoc.Transform.Rotate 45, 302, 396
theDoc.FrameRect
theDoc.FontSize = 24
theDoc.AddText theText
theDoc.Save "c:\mypdfs\doctransform.pdf
"


doctransform.pdf

   

 

Browser Based Help. Published by chm2web software.