IPortion GetCoordinates() bug

Hi. Have document: input.zip (23.0 KB)
Have 3 strings. Main difference - first string has tabs between “First” and “second_tabs” words.
So, when I want get coordinates of portion with text “second_tabs”, than I getting wrong coordinates. When I’am using spaces (second string) or underline, than all coordinates is ok.
Test code:
public void Test(string filePath)
int countOfErrors = 0;
Slides.Presentation presentation = new Slides.Presentation(filePath);
System.Drawing.PointF tabCoordinates = new System.Drawing.PointF();
System.Drawing.PointF spaceCoordinates = new System.Drawing.PointF();
System.Drawing.PointF underlineCoordinates = new System.Drawing.PointF();
foreach (ISlide slide in presentation.Slides)
foreach (IShape shape in slide.Shapes)
foreach (IParagraph paragraph in (shape as AutoShape).TextFrame.Paragraphs)
foreach (IPortion portion in paragraph.Portions)
if (portion.Text == “second_tabs”)
tabCoordinates = portion.GetCoordinates();
if (portion.Text == “second_space”)
spaceCoordinates = portion.GetCoordinates();
if (portion.Text == “second_underline”)
underlineCoordinates = portion.GetCoordinates();
Assert.Greater(tabCoordinates.X, spaceCoordinates.X);
Assert.Greater(tabCoordinates.X, underlineCoordinates.X);
tabCoordinates.X must be always greater then spaceCoordinates.X or underlineCoordinates.X
screenshot-1.png (4.2 KB)


I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESNET-40626 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

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