Problem with rotated text in a TextFragment

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)

@LeeHearn

Can you please share the expected output for our reference as well? We will test the scenario in our environment and address it accordingly.

I just added Mailer2.png, which is an example of what we are trying to achieve.

Thanks!

Mailer2.png (20.5 KB)

@LeeHearn

We were able to notice the issue in our environment while testing the scenario. Will it be possible if you can share the code part where you are actually calling the shared method? This would help us in investigating the scenario accordingly and implement a fix.

    public byte[] MakePremiumReceipt(PremiumReceiptGroup prg, List<string> mm)
    {
        using (var document = new Document())
        {
            PageInfo pageInfo = document.PageInfo;

            MarginInfo marginInfo = new MarginInfo();
            marginInfo.Left = 18;
            marginInfo.Right = 18;
            marginInfo.Top = 18;
            marginInfo.Bottom = 18;
            pageInfo.Margin = marginInfo;

            PrintPageHeader(document);

            AddMarketingMessage(mm);

            return GenerateReport(document);
        }
    }

@LeeHearn

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55811

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.