Getting incorrect paragraph x,y using GetRect()

I am getting incorrect x,y value for a paragraph in textFrame. The textFrame contains 6 paragraphs, among which last two dont have text. In remaining first 4 paragraphs, first two have X value of 34.2 while third has value of 7 which seems to be incorrect as all paragraph seems to start at same left pos in presentation file. The code used for getting para position is shown below.

//After getting the first textFrame of first shape in first slide

for (int i = 0; i < aTextFrame.Paragraphs.Count; i++)
IParagraph aParagraph = aTextFrame.Paragraphs[i];
myParagraph paragraph = new vctParagraph();
var rect = aParagraph.GetRect();
paragraph.left = rect.X; = rect.Y;
paragraph.width = rect.Width;
paragraph.height = rect.Height;
paragraph.text = aParagraph.Text;

I have attached the sample pptx file for your (75.1 KB)


I have reproduced the issue on my end and a ticket with ID SLIDESNET-42052 has been created in our issue tracking system to further investigate and resolve the issue. We will share the feedback with you as soon as the issue will be fixed.

The issues you have found earlier (filed as SLIDESNET-42052) have been fixed in this update.