Edit shapes

Hello. There is a possibility to edit shapes in Powerpoint(pptx). For example, if i add new trapezoid on slide, i can change it’s top length by just dragging mouse left or right. Also, if i right click on shape, there is an option “edit points”, where i can add curve to shape lines. Is this features implemented in Aspose.Slides?

Hi,

Thanks for inquiring Aspose.Slides.

I have observed the requirements shared by you and like to share that Aspose.Slides offers you to adjust the angle and raw value of the trapezoid shape. You can use the following sample code t serve the purpose. However, the feature of edit points in MS PowerPoint is actually a feature of UI and Aspose.Slides does not have any front end interface. That is why the said feature is not supported in Aspose.Slides at the moment. I have created an issue with ID SLIDESJAVA-34173 in our issue tracking system to further investigate the possibility of implementing the Edit Points support. This thread has been linked with the issue so that you may be automatically notified once the support will be available.

public static void ModifyArcSize()
{
try
{
String path = “D:\Apose Data\”;
String filename = path+“arcsize.pptx”;
PresentationEx p = new PresentationEx(filename);
SlideEx s = p.getSlides().get_Item(0);

AutoShapeEx shape = (AutoShapeEx)s.getShapes().get_Item(0);

if(shape.getAdjustments().getCount()!=0)
{
AdjustValueEx av = shape.getAdjustments().get_Item(0);
if(null != av)
{
System.out.println("RawValue= “+av.getRawValue()+” AngleValue= “+av.getAngleValue()+” Name= "+ av.getName());
// av.setRawValue(av.getRawValue() + 23260);
av.setAngleValue(0);

}

}
p.save(path+“arcsize-modified.pptx”, com.aspose.slides.SaveFormat.Pptx);

}
catch (Exception ex)
{
ex.printStackTrace();

}
}

Many Thanks,

Thanks.

Can i read existing presentation with shapes, which were modified with “edit points” feature and then add them to my newly created presentation. There is an example in documentation how to read shapes, but i couldn’t add this shape to a new slide. Is it possible?

Hi,

I have observed the requirements shared by you and it seems that you are probably looking for support for copying shapes. You want to copy the shape from one slide to another. If this is your requirement then I like to add that the support for copying shapes in unavailable in Aspose.Slides for PPTX shapes at the moment. The said support will be available in Aspose.Slides hopefully during Q1 of 2014. If you wish to copy the entire slide with such shape in it, this is availble in Aspose.Slides and you can use Slide cloning feature in this regard to serve the purpose. Please share, if I may help you further in this regard.

Many Thanks,

Thanks for your answers