currently I’m evaluating Aspose.Slides for Java. What I want to do is to add new Paragraph objects to a TextFrame.
What I’m able to do is to change the bullet character or to (un)hide the bullet via the setHasBullet(…) method, as long as I’m calling the methods on a Paragraph object which already exists in the PPT file (obtained via shape.getTextFrame().getParagraphs().get(i)).
However when I create a new Paragraph object via the following code and add it to the TextFrame (getParagraphs.add(par)), the bullet is never shown:
Paragraph par = new Paragraph();
par.setBulletColor(new Color(137, 137, 137));
The call of the methods setHasBullet(true) and setBulletColor(…) seem to have no effect at all, since when I call getBulletColor() and getHasBullet() later on, I get the return values Color(0, 0, 0) for bullet color and false for hasBullets.
Am I missing something, or could this be a restriction in the free trial versions? (I tried versions 2.7.0 and 2.6.0).
If the latter is the case, are there other restrictions, and what are they?
Thank you very much in advance.
adding the paragraph first does the trick. Now it works! Many Thanks!!