Hi,
When I try to get the font size of the Notes Pages in the attached presentation, I get 18 instead of 10.
Here’s the code I used:
Here’s the code I used:
<span style=“font-family: “Courier New”;”>
String path = “Test.pptx”;
InputStream inputStream = new FileInputStream(path);
Presentation presentation = new Presentation(inputStream);
inputStream.close();
INotesSlide notesPage = presentation.getSlides().get_Item(0).getNotesSlideManager().getNotesSlide();
IShapeCollection shapes = notesPage.getShapes();
IAutoShape shape = (IAutoShape) shapes.get_Item(3);
IParagraphCollection paragraphs = shape.getTextFrame().getParagraphs();
IParagraph paragraph = paragraphs.get_Item(0);
IPortion portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
IPortionFormatEffectiveData effectiveData = portion.createPortionFormatEffective();
System.out.println(effectiveData.getFontHeight());
paragraph = paragraphs.get_Item(1);
portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
effectiveData = portion.createPortionFormatEffective();
System.out.println(effectiveData.getFontHeight());
paragraph = paragraphs.get_Item(2);
portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
effectiveData = portion.createPortionFormatEffective();
System.out.println(effectiveData.getFontHeight());
paragraph = paragraphs.get_Item(5);
portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
effectiveData = portion.createPortionFormatEffective();
System.out.println(effectiveData.getFontHeight());
paragraph = paragraphs.get_Item(6);
portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
effectiveData = portion.createPortionFormatEffective();
System.out.println(effectiveData.getFontHeight());
Here’s the output:
<span style=“font-family: “Courier New”;”>Notes-Audio:<span style=“font-family: “Courier New”;”>18.0<span style=“font-family: “Courier New”;”>BC Oil Miracle captures the benefits of precious botanical oils without overburdening thanks to its unique evaporating formula.<span style=“font-family: “Courier New”;”>18.0<span style=“font-family: “Courier New”;”>This care routine instantly nourishes hair with the essence of hair beauty: opulent shine and caress able softness.<span style=“font-family: “Courier New”;”>18.0<span style=“font-family: “Courier New”;”>Tip-Audio:<span style=“font-family: “Courier New”;”>18.0<span style=“font-family: “Courier New”;”>The Oil Miracle assortment fulfils the needs of all hair types18.0
Can you check this?
Thanks,
Zeljko
Thanks,
Zeljko