IsFirstParagraph no longer working

Recently upgraded to latest version of aspose and now code that builds a pdf no longer has page breaks:

For each ....

p.PositioningType = Aspose.Pdf.PositioningType.PageRelative
p.Left = iLeftLoc
p.Top = iTopLoc
p.IsFirstParagraph = True
sec1.Paragraphs.Add(p)

Each one of my fields are all on top of each other - rather than each on its own page.... Any suggestions? Thanks!!!

Hello Angela,

I've tested the scenario and I'm able to notice the same problem. I've logged it as PDFNET-13097 in our issue tracking system. We're looking into the details of this problem and will keep you updated with the status of correction, within this same forum thread.

We apologize for your inconvenience.

Hello Angela,

Thanks for considering Aspose.

After initially studying the issue, we’ve concluded that when a paragraph is set as PositioningType.PageRelative it’s treated as a floating paragraph, and unfortunately, IsFirstParagraph no longer affects floating paragraphs.

As a workaround, please avoid using the PageRelative positioning type or use PositioningType.Auto but be aware that it might not fully resolve your problem. In a simple test on my end, it worked correctly.

We apologize for your inconvenience.