We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to Create Specific Bullets in List - Red Square and Red Circle


We are using the Java Slides API for a client's proof of concept. The Attached has the layout we are looking to achieve. Note the red square bullet in front of each header and the indented red circles under each which will be the list items.

  1. Can you please advise how we can create these bullet types? Java sample code would be great.
  2. Can you please advise on how to add padding between the header (Area of Expertise) and the first item in the list (Text)?


Hi Stepehen,

Please use the code snippet given below to serve the purpose. I am sorry at the moment you may not set the bullet color as this property is currently not working. An issue with ID SLIDESJAVA-33159 has already been added in our issue tracking system to resolve this issue. We will share the furhter information with you as soon as the issue will be resolved.

//Instantiate a Presentation object that represents a PPT file
PresentationEx pres = new PresentationEx();

SlideEx slide = pres.getSlides ().get(0);

int x=slide.getShapes ().addAutoShape (com.aspose.slides.pptx.ShapeTypeEx.RECTANGLE, 100, 100, 300, 300);
AutoShapeEx aShp=(AutoShapeEx)slide.getShapes().get(x);

aShp.addTextFrame(“Hello World”);
TextFrameEx txtFrm = aShp.getTextFrame();

//Getting the first paragraph of the text frame
ParagraphEx para = txtFrm.getParagraphs().get(0);

//Enabling symbolic paragraph bullet
boolean bul= para.hasBullet ();// = true;
para.setBulletType(BulletTypeEx.SYMBOL) ;

//Setting block character as bullet
para.setBulletChar ( ‘\u25A0’);
para.setText(“Welcome to Aspose.Slides”);


ParagraphEx para2 = new ParagraphEx();
para2.setText( “This circular bullet”);
para2.setBulletType(BulletTypeEx.SYMBOL );
para2.setBulletChar ( ‘\u2219’);


Many Thanks,

Thanks. Any idea how long a fix will take? Weeks, months, unknown?

Are there any suggested workarounds? What if we use images of a red bullet and red box? What about using a template that has red bullets already?


Hi Stepehen,

I would suggest you to try the same using Aspose.Slides for .NET. If your issue is found resolved there then this will be automatically resolved in Aspose.Slides for Java 3.0.0, that is due for release on 23 May, 2012. Actually, we are implementing auto porting for Aspose.Slides for .NET features in Aspose.Slides for Java. It is one complex and huge task and will take some time. Once done, most of issues that are in Aspose.Slides for Java but not in Aspose.Slides for .NET will be automatically addressed.

Many Thanks,