Type Default Read Only Description

[Visual Basic]
No transformation. No The current transformation for drawing.




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. You are changing the coordinate system - not the objects you're inserting.

Note that transforms operate on the underlying PDF coordinate space rather than any abstraction specified by the Units and TopDown properties. If you are using transforms you will find it easiest to work in the native PDF coordinate space.




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.


using (Doc doc = new Doc()) {   string theText;   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 + "\r\n" + theText + "\r\n" + theText + "\r\n";   doc.Rect.Magnify(0.5, 0.5);   doc.Rect.Position(151, 198);   doc.FrameRect();   doc.Transform.Rotate(45, 302, 396);   doc.FrameRect();   doc.FontSize = 24;   doc.AddText(theText);   doc.Save(Server.MapPath("doctransform.pdf")); }