Hi,
how can I create a picture bullet for PPTX ?
thx,
Florian.
Hi,
how can I create a picture bullet for PPTX ?
thx,
Florian.
Hi
Florian,
//Instantiate a Presentation object that represents a PPT filePresentationEx 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 frameParagraphEx para = txtFrm.getParagraphs().get(0);//Enabling symbolic paragraph bulletboolean bul= para.hasBullet ();// = true;para.setBulletType(BulletTypeEx.SYMBOL) ;//Setting block character as bulletpara.setBulletChar ( ‘\u25A0’);para.setText(“Welcome to Aspose.Slides”);para.getBulletColorFormat().setColor(java.awt.Color.BLUE);para.getBulletColor().setColor(java.awt.Color.BLUE);ParagraphEx para2 = new ParagraphEx();para2.setText( “This numbered bullet”);para2.setBulletType(BulletTypeEx.NUMBERED);para2.getBulletColorFormat().setColor(java.awt.Color.BLUE);para2.getBulletColor().setColor(java.awt.Color.BLUE);para2.setNumberedBulletStyle(NumberedBulletStyleEx.BULLET_CIRCLE_NUM_WD_BLACK_PLAIN);txtFrm.getParagraphs().add(para2);pres.write(“d:\modified.pptx”);
If there is anything else I can do in the meantime then please let me know.
Thanks - but how can I use a custom picture instead of the symbol ?
Hi,
Thanks for using Aspose.Slides.
We regret to inform you that PictureBullet support for pptx is currently unavailable. I have observed that an issue with ID SLIDESJAVA-32872 has already been added in our issue tracking system as a new feature request. Our development team will look into the possibility of implementation of the requested feature.
This thread has been associated with this new feature request, so that you can be automatically notified as soon as this issue is resolved.
In case of ppt presentations this link will help you setting custom picture as a Picture Bullet.
We are sorry for your inconvenience,
Hi,
The issues you have found earlier (filed as SLIDESJAVA-32872) have been fixed in this update.