Hi Jatinder Kumar,
Hi Mudassir,
Here is the code that we are using. We are getting error on the very first line new PresentationEx().
This is not working on Windows as well with release build i.e when running from jar executable.
Exception on Windows : invalid SHA1 signature file digest for com/aspose/slides/Collections/Generic/c.class
ppt = new PresentationEx();
LoadOptions lo = new LoadOptions(LoadFormat.Auto);
lo.setDefaultRegularFont("Arial");
lo.setDefaultAsianFont("Arial");
lo.setDefaultSymbolFont("Arial");
For loop for number of slides to create
{
SlidesEx slide = ppt.getSlides();
int slideno = slide.addClone(ppt.getSlides().get_Item(0));
SlideEx sld = ppt.getSlides().get_Item(slideno);
int posImages = 0;
ImageEx imgx = ppt.getImages().addImage(image);
// Add Picture Frame with height and width equivalent of Picture
int iPictureIndex = sld.getShapes().addPictureFrame(ShapeTypeEx.Rectangle,
positionImage[posImages][0], positionImage[posImages][1],
positionImage[posImages][2], positionImage[posImages][3],
imgx);
PictureFrameEx picFrame = (PictureFrameEx)sld.getShapes().get_Item(iPictureIndex);
AutoShapeEx ashp = (AutoShapeEx) sld.getShapes().get_Item(iTextIndex);
ashp.setUseBackgroundFill(false);//getFillFormat().setFillType(1);
// Add TextFrame to the Rectangle
ashp.addTextFrame("Image-" + iImageIndex);
ashp.setWidth(100);
ashp.setHeight(20);
}
ppt.write(pathPpt);
Hi Mudassir,
FYI : We are using Aspose slides in JavaFx applications. May be Aspose is not compatible with JavaFx.
The latest JavaFx is included in JDK 7U21. Can you confirm that Aspose works well with JavaFx applications.
Do you want JavaFx sample application to test this ??
We are struggling using Aspose slides from long time.
Any help from you will be appreciated.
Thanks
Jatinder Kumar
Hi Jatinder Kumar,
Hi Mudassir,
Thanks for your support. We have found the solution.
Actually net beans ide was modifying aspose.slides-7.2.0.jar file and that was the reason for these shared exceptions.
Now we are back to another problem which we were facing prior to these exceptions.
"The font problem" on MAC. Cannot find resource '/Aspose/Resources/GenBasR.ttf'
This is still not fixed in aspose aspose.slides-7.2.0.jar.
We are using the above shared code and aspose.slides-7.2.0.jar but still getting this error. Can you guide us how to get rid of this exception. Asking client to install fonts prior to using aspose slides doesn't seems a good approach.
Thanks
Hi Jatinder Kumar,
Hi Mudassir,
We are using aspose to create presentation from scratch. We are not using any existing presentation (source) to create the new one.
Can you tell approximate time to resolve the Font issue ?
Thanks
Jatinder Kumar
Hi Jatinder Kumar,
Hi Mudassir,
Any update on this. We are blocked at this point.
Hi Jatinder Kumar,
Hi Mudassir,
Getting activeX in early next month is fine, I am talking another issue that is blocking us.
The font problem that I have stated above in Mac environment.
"The font problem" on MAC. Cannot find resource '/Aspose/Resources/GenBasR.ttf'
Thanks
Jatinder Kumar
Hi Jatinder Kumar,
Hi Jatinder Kumar,
FontsLoader.loadExternalFonts(new String[] “/Library/Fonts”, “/Library/Fonts/Microsoft”});
Hi Jatinder Kumar,
I like to share that the support for adding ActiveX control has been added in Aspose.Slides for Java 7.4.0. Please follow this documentation link for your kind reference. The product release will be shared by 03 June, 2013. We will share the notification with you once it will be shared online.
Many Thanks,
The issues you have found earlier (filed as SLIDESJAVA-33780) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as SLIDESJAVA-33790) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(1)