Hello,
I am writing to you about the problem we encountered in working with MSO PowerPoint document using the Aspose Slides for Java library (v21.10). We are using Ubuntu 22.04 LTS and OpenJDK 11.0.13.
When trying to access the effective font height of the Notes Pages in the attached presentation, we get 11 as a value instead of 12, as it appears in MS Powerpoint (as you can see in the provided screenshot).
In the attachment below, you can find the ZIP file with test code, source PPT file as well as screenshot.
Best regards!
Aleksandar
test code and files (2947).zip (84.3 KB)
@zpredojevic,
Thank you for reporting the issue.
I’ve reproduced the problem with getting the effective font height from the Notes and added a ticket with ID SLIDESJAVA-39072 to our issue-tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when a new release of Aspose.Slides with a fix is published.
Hi @andrey.potapov
Is there any update regarding above issue?
Best regards,
Nenad
@zpredojevic,
The issue is still open. Unfortunately, I don’t have any additional information. We apologize for any inconvenience caused.
@zpredojevic,
As you can see, the current effective font height of the Notes page is 11: 39072-notes.png (96.1 KB). The auto-fit of the Notes text frame is set to Normal, so the font height is scaled based on the content.
Presentation presentation = new Presentation("source.pptx");
INotesSlideManager notesSlideManagerSource = presentation.getSlides().get_Item(0).getNotesSlideManager();
INotesSlide notesSlide = notesSlideManagerSource.getNotesSlide();
ITextFrame notesTextFrame = notesSlide.getNotesTextFrame();
ITextFrameFormatEffectiveData textFrameFormat = notesSlide.getNotesTextFrame().getTextFrameFormat().getEffective();
System.out.println("Notes text autofit type: " + TextAutofitType.getName(TextAutofitType.class, textFrameFormat.getAutofitType()));
Output:
Notes text autofit type: Normal