Incorrect Font Size Extracted from PPTX Using Aspose.Slides for Java

Hi,

Incorrect font size has been returned for text in shape on slide #19. I get 74.82 instead of 67.

Here’s the code:

    Presentation presentation = new Presentation("test.pptx");

    ISlide slide = presentation.getSlides().get_Item(18);

    IAutoShape shape = (IAutoShape) slide.getShapes().get_Item(2);

    IParagraph paragraph = shape.getTextFrame().getParagraphs().get_Item(0);

    IPortion portion = paragraph.getPortions().get_Item(0);
    
    System.out.println(portion.getText());
    
    System.out.println(portion.createPortionFormatEffective().getFontHeight());

And the output:

“Not to know is bad; not to wish to know is worse.”
74.82

I’m using Aspose.Slides for Java 18.2.

Can you check this?

Thanks,
Zeljko

1465.PNG (61.9 KB)

http://www94.zippyshare.com/v/3NzluNtg/file.html

@Zeljko,

I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESJAVA-36943 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 automatically notified once the issue will be fixed.

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