I am creating a pdf page. I am testing that i can apply various Margins to the page. When I set page margins and then add some thing my expectations are that it will move based on margins but that is not happening. Can you explain me what is going wrong or what i am missing. Below is code sample.
var sec = pdfDocument.Pages.Add();
sec.PageInfo = new PageInfo
IsLandscape = false,
Width = PageSize.PageLetter.Width,
Height = PageSize.PageLetter.Height,
Margin = new MarginInfo
Left = 100,
Top = 100,
Right = 50,
Bottom = 50,
BorderInfo bi = new BorderInfo(BorderSide.All,Color.Black);
Graph gp = new Graph(200,200);
gp.Border = bi;
My expectation is if i change margin then position of the Graph should change.
Let me know if I am missing something.