thanks faiz,
I want to set Red as Text color to master title placeholder.
so all the title slides that based on that title master will
have the title text color us Red
If i do that by adding new Red text Portions to title master placeholder
The title slides that based on that Master lost its text.
Dear nuller,
The formatting of the text is saved in the Portion object, if you will set the text in these ways, it will be destroyed.
tf.setText
tf.getParagraphs().get(0).setText
So, to keep them safe, you should set the text in this way
tf.getParagraphs().get(0).getPortions().get(0).setText
The code I gave you earlier, works fine and does not loose the master color settings, please see the attached presentations.
thanks faiz, i will try this …
Hi Faiz,
When I try to set the text in a master slide, then the created ppt becomes corrupted. When we try to open the ppt in PowerPoint, it is throwing the error “A part of file is missing”.
If I try to set the portion props in the master slide, the ppt can be opened, but the portion properties are not taking effect in the title, subtitle, textbody placeholders.
The above works normally in a normal slide but not in a slidemaster or a title master. Please provide me a solution for setting the text, portion properties in a master slide.
Thanks,
Mani.
Dear Mani,
I have tried to understand the issue shared by you. But in order to reproduce the issue on my end I request you to please share the template presentation for reference. Please also share, which portion properties that you are trying to set and are not working. Please also share that which version of Aspose.Slides for Java you are using for your application.
Thanks and Regards,