PPT Text x,y,width,height - openxml
-
09-12-2019 - |
Question
I tried following this Presentation ML inheritance chain:
Slide <-- SlideLayout <-- SlideMaster <-- default styles in SlideMaster
to obtain x,y,width,height properties of text content in a PPT Slide but I am not sure whether I am getting correct value. Can you please tell if I am doing the right thing ? Can you also please tell me how to uniquely identify this text object in Slide, SlideLayout & SlideMaster ?
-Thank you
Solution
Refer to the following Answer to determine the Height and Width of Text properties.
For determining if you have the right text, Enter unique text into your slide and use the Open XML Productivity Tool to find it. You can use the tool to search for your unique string in your slide and reflect the code to generate it.
Lastly, to understand the Presentation Slide XML, I recommend reading the free e-book Open XML Explained to give an explanation of how a correct Presentation document is formed to help you better understand where things should be.
OTHER TIPS
If you have powerpoint installed from Microsoft office. You can do the following, though this is not programmatic, but can help you to get the job done.
Steps:
Open ppt
Click on your chart or whatever object you like.
Click on 3rd icons select
Size
Position
, and you can see the following
Note:
I'm demoing with Microsoft Powerpoint for Mac Version 2018.
Hope it helps.