Using aspose 24.5 for import of powerpoint presentations in C++
Hello, PFA the ppt attached.
group.pptx.zip (26.8 KB)
the textBoxes in the above ppt, the text alignment is centre but in aspose api get_Alignment()
; it returns TextAlignment::NotDefined
.
@pankajku,
Thank you for contacting free support.
The reason you receive TextAlignment::NotDefined
is that the center alignment was not set directly on the paragraph but was inherited from a parent element or theme style.
Please try using
paragraph->get_ParagraphFormat()->GetEffective()->get_Alignment()
instead of
paragraph->get_ParagraphFormat()->get_Alignment()
More examples:
Shape Effective Properties|Aspose.Slides Documentation