I am creating a mailer. The layout is portrait. On the front of the page, some of the text is rotated 90 degrees. I am getting a very bizarre result with some of the rotated text. I need the text to start at the bottom margin, but the closer I move the text to the bottom of the page the more it reflects back upon itself. The code is C#. I repeated two different lines of text multiple times at different positions to illustrate the bizarre behavior.
private void AddMarketingMessage(List mm)
{
string message = mm[0];
textF = new TextFragment(message);
textF.TextState.FontSize = 12;
textF.TextState.Rotation = 90;
textF.HorizontalAlignment = HorizontalAlignment.Left;
textF.Position = new Position(40,70);
page.Paragraphs.Add(textF);
textF = new TextFragment(message);
textF.TextState.FontSize = 12;
textF.TextState.Rotation = 90;
textF.Position = new Position(50, 60);
page.Paragraphs.Add(textF);
textF = new TextFragment(message);
textF.TextState.FontSize = 12;
textF.TextState.Rotation = 90;
textF.Position = new Position(60, 50);
page.Paragraphs.Add(textF);
textF = new TextFragment(message);
textF.TextState.FontSize = 12;
textF.TextState.Rotation = 90;
textF.HorizontalAlignment = HorizontalAlignment.Left;
textF.Position = new Position(70, 40);
page.Paragraphs.Add(textF);
message = mm[1];
textF = new TextFragment(message);
textF.TextState.FontSize = 12;
textF.TextState.Rotation = 90;
textF.Position = new Position(80, 240);
page.Paragraphs.Add(textF);
textF = new TextFragment(message);
textF.TextState.FontSize = 12;
textF.TextState.Rotation = 90;
textF.Position = new Position(90, 220);
page.Paragraphs.Add(textF);
textF = new TextFragment(message);
textF.TextState.FontSize = 12;
textF.TextState.Rotation = 90;
textF.Position = new Position(100, 200);
page.Paragraphs.Add(textF);
textF = new TextFragment(message);
textF.TextState.FontSize = 12;
textF.TextState.Rotation = 90;
textF.Position = new Position(110, 190);
page.Paragraphs.Add(textF);
}
Mailer.png (39.1 KB)