I am using slides, and converting individual slides from a PPT file to JPG images. To convert PPT slide to JPG image I am using slide.getThumbnail(new Dimension(imageWidth, imageHeight));
If I don’t initialize the Dimension object with imageWidth and imageHeight (i.e. default construction of Dimension) then ASPOSE errors out saying the imageWidth and imageHeight should be greater than zero.
I am trying to emulate powerpoint’s ability using ASPOSE to export a slide to an image without specifying the imageWidth and imageHeight, Powerpoint generates the image with 960*720 resolution. Is it possible with ASPOSE slides to specify default resolution for images?
Hi Ram,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for showing interest in Aspose.Slides.
The issue of supporting default Dimension constructor that is currently not supported has been considered as enhancement in Aspose.Slides for Java. An issue with issue id 15313 has been created in our Issue Tracking System to support this feature. This thread has also been associated with this issue, so that you can be automatically notified as soon as this issue is resolved.
Moreover, you can specify the default resolution of and image generated by Aspose.Slides for Java by using following function call. The default slide thumbnail resolution is 720 * 540.
We are sorry for your inconvenience,