|
|
Colored bullet in PPTX format needed (Java)
Last post 05-06-2012, 3:01 PM by Mudassir. 10 replies.
-
01-30-2012, 11:52 AM |
|
|
Colored bullet in PPTX format needed (Java)
Hello,
how can I set the color of bullets in new created paragraphs using the PPTX format?
There is no ParagraphEx#setBulletColor(...) method. I also can find no way to set a picture bullet in ParagraphEx objects to use an image as colored bullets, even though it's possible to set the BulletType to BulletTypeEx.PICTURE.
Also, if I copy all bullet properties from a template text shape to a new created paragraph on a new slide using the following code, I get a corrupted PPTX file (PowerPoint tells me that some objects, texts or images can not be displayed since they were damaged):
newParagraph.setBulletType(templateParagraph.getBulletType()); newParagraph.setBulletChar(templateParagraph.getBulletChar()); newParagraph.setBulletFont(templateParagraph.getBulletFont()); newParagraph.setBulletHeight(templateParagraph.getBulletHeight()); newParagraph.setBulletHardColor(templateParagraph.isBulletHardColor()); newParagraph.setBulletHardFont(templateParagraph.isBulletHardFont());
Can you please help me?
Kind Regards Stefan Waldmann
|
|
-
01-31-2012, 1:08 AM |
-
Mudassir
-
-
-
Joined on 11-14-2007
-
-
Posts 5,153
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hi Stefan,
I have tried to set the bullet color in Aspose.Slides for Java and have verified that property is not working currently. An issue with ID SLIDESJAVA-33159 has been created in our issue tracking system to further investigate and resolve the issue. This thread has also been linked with the issue so that you may notified accordingly when the issue will be resolved. For your reference, the following code will be used to set the bullet color. Secondly, the picture bullets are currently not supported and I have requested our development team for the status of the feature.
para.getBulletColor().setColor(java.awt.Color.BLUE);
We are sorry for your inconvenience,
Mudassir Fayyaz Support Developer Aspose Sialkot Team Contact Us Aspose - The .NET and Java Component Publisher Keep in touch! We're on Twitter and Facebook
|
|
-
01-31-2012, 7:02 AM |
-
swds
-
-
-
Joined on 11-22-2011
-
-
Posts 9
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hello Mudassir,
thanks for your reply. Can you tell me how long it will take for the issue to be fixed? We are already in development and need a quick decision if we implement our features with the PPTX format or if we have to switch back to PPT since coloured bullets are not possible using PPTX.
What we also need (and what does not seem to work) is to set the bullet char and font - the black square (char 61550) of the Wingdings font - in new created paragraphs.
Setting the bullet char and color only works with existing paragraphs of shapes which already exist on a PowerPoint template file, but not with shapes which are created on a new presentation created with the default constructor.
Thanks & Regards Stefan
|
|
-
01-31-2012, 12:27 PM |
-
Mudassir
-
-
-
Joined on 11-14-2007
-
-
Posts 5,153
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hi Stefan,
I have used the following code snippet to add the bullets in PPTX presentation from scratch. The only issue is setting bullet color and that has already been added. I will suggest you to use the template presentation with bullets in it for the time being and delete the unused paragraphs with bullets in the end by keeping only used ones. I have also set the bullet character to square block for your reference as well. Please visit this link for your kind reference.
//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"); 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");
Mudassir Fayyaz Support Developer Aspose Sialkot Team Contact Us Aspose - The .NET and Java Component Publisher Keep in touch! We're on Twitter and Facebook
|
|
-
02-01-2012, 5:50 AM |
-
swds
-
-
-
Joined on 11-22-2011
-
-
Posts 9
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hi Mudassir,
thanks for your reply. Setting the square works as you described.
Unfortunately using the template presentation is not an option, since we need to multiply the shapes dynamically (for each of n objects in the database a report slide is generated). This is another issue we have to deal with, since the PPTX format classes do not provide (yet?) the means to clone / copy shapes, so that we have to recreate them from scratch by copying each of the template shapes' properties...
Kind regards Stefan
|
|
-
02-01-2012, 12:32 PM |
-
Mudassir
-
-
-
Joined on 11-14-2007
-
-
Posts 5,153
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hi Stefan,
I regret to share that the shape serialization is unavailable in case of PPTX. Unfortunately, there is no other work around presently available that I may offer you for further investigation. The cloning of template slide with many bullets can be one option for the time being as shared by me earlier. You may use the template presentation with maximum bullets which can be accommodated on the slide. In this case out n values from database, x values can be printed in one slide ( where x is maximum number of bullets in one slide) . If x is less than n, you can delete the remaining x-n bullets from template slide, otherwise, if n>x than you may move to add remaining next bullets by cloning another slide.
Many Thanks,
Mudassir Fayyaz Support Developer Aspose Sialkot Team Contact Us Aspose - The .NET and Java Component Publisher Keep in touch! We're on Twitter and Facebook
|
|
-
02-02-2012, 1:53 AM |
-
swds
-
-
-
Joined on 11-22-2011
-
-
Posts 9
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hi Mudassir,
what I need is not n bullets for n objects from the database, but n shapes for n objects from the database, with m bullets (m for the number of child objects). For example in the database there are n authors. So I need one shape for each of the n authors. Each author has written m books, so I need m bullets in each shape (m being different for each shape). The problem therefore is to clone the shape n times.
Unfortunately before buying the license we concentrated too much on the PPT format when evaluating the library. There everything we need worked fine, and we expected that all what works for PPT also must work for PPTX, which is most regrettably not the case. Now we have big problems because there is no cloning or serealization function and we must do very much by ourself, copying all attributes of the template shape manually into new objects.
We also do not want to switch back to PPT, which is an old format that may not be supported any more in the future.
Using the shapes of the pptx template presentation is not an option, because of the problem described above, or more generally, that we need to build very flexible kinds of reports, consisting of different components (i.e. groups of shapes) which can be configured for each report, and each component existing multiple times (the number is determined dynamically based on database entries).
It seems that we can make most of it work by workarounds and more effort than expected, but one thing what doesn't work at all are the colored bullets.
So could you please tell me how long it will take for the issue to be fixed? You also wrote in your first post that you requested the status for the implementation of Picture Bullets in PPTX, can you tell me what the status is?
Kind regads Stefan
|
|
-
02-15-2012, 8:46 AM |
-
Mudassir
-
-
-
Joined on 11-14-2007
-
-
Posts 5,153
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hi Stefan,
Please accept my apologies for the delayed response.
The issue of colored bullets has been scheduled for investigation in week 8 of 2012. We have an ongoing highest priority activity of auto porting Aspose.Slides for .NET feature to Aspose.Slides for Java and it is one huge task that will yield a more a more stable and much abundant in features version of Aspose.Slides for Java. After investigation of week 8, we will be in position to tell that whether the fix for the issue will be included in auto ported release of Aspose.Slides for Java which is due on 23 May, 2012.
Many Thanks,
Mudassir Fayyaz Support Developer Aspose Sialkot Team Contact Us Aspose - The .NET and Java Component Publisher Keep in touch! We're on Twitter and Facebook
|
|
-
02-20-2012, 10:41 AM |
-
swds
-
-
-
Joined on 11-22-2011
-
-
Posts 9
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hello Mudassir,
thanks for the information. Unfortunately this will be too late for our current release. However we'll be looking forward to test the features of the coming autoported version.
Kind regards Stefan
|
|
-
02-20-2012, 10:13 PM |
-
Mudassir
-
-
-
Joined on 11-14-2007
-
-
Posts 5,153
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hi Stefan,
I really appreciate your patience for all this and will share the information with you once the issue will be resolved.
Many Thanks,
Mudassir Fayyaz Support Developer Aspose Sialkot Team Contact Us Aspose - The .NET and Java Component Publisher Keep in touch! We're on Twitter and Facebook
|
|
-
05-06-2012, 3:01 PM |
-
Mudassir
-
-
-
Joined on 11-14-2007
-
-
Posts 5,153
-
-
-
-
-
|
Re: Colored bullet in PPTX format needed (Java)
Hi Stefan,
I have added the article for managing PPTX bullets in Aspose.Slides for Java documentation. You can also set the bullet colors in it. Please visit this documentation link for your kind reference.
Many Thanks,
Mudassir Fayyaz Support Developer Aspose Sialkot Team Contact Us Aspose - The .NET and Java Component Publisher Keep in touch! We're on Twitter and Facebook
|
|
|
|