Here we draw two rectangles into our document. The black
rectangle is drawn before the translation operation and the red one
is drawn after it.
using (Doc doc = new Doc()) {
doc.Rect.Width = 200;
doc.Rect.Height = 250;
doc.Rect.Position(100, 100);
doc.Width = 20;
doc.FrameRect();
doc.Transform.Translate(200, 200);
doc.Color.String = "255 0 0"; // red
doc.FrameRect();
doc.Save(Server.MapPath("transformtranslate.pdf"));
}
Using doc As New Doc()
doc.Rect.Width = 200
doc.Rect.Height = 250
doc.Rect.Position(100, 100)
doc.Width = 20
doc.FrameRect()
doc.Transform.Translate(200, 200)
doc.Color.String = "255 0 0"
' red
doc.FrameRect()
doc.Save(Server.MapPath("transformtranslate.pdf"))
End Using