PPTX master slide font height

Hi,

I tried to get font size from master slide with following code:

PresentationEx presentation = new PresentationEx(“d:/test1.pptx”);

MasterSlidesEx masters = presentation.getMasters();

MasterSlideEx master = masters.get(0);

ShapesEx shapesM = master.getShapes();

ShapeEx shapeM = shapesM.get(1);

if(shape instanceof AutoShapeEx) {
try{
if(shapeM instanceof AutoShapeEx) {
AutoShapeEx ashapeM = (AutoShapeEx) shapeM;

System.out.println(ashapeM.getTextFrame().getParagraphs().get(0).getPortions().get(0).getRawFontHeight());
}
}catch(Exception e){
System.out.println(“Error”);
}

}

, but I got NaN.

Where do I wrong?



Test1.pptx is in attachment.

Thanks,

Zeljko

Hi,

Same as discussed here.