Hi,
my goal is to convert a PPT and PPTX file to images. Each slide should be output as an image in the same size as the original slide. I am using ColdFusion and .NET Aspose components.
I’ve got various versions of .NET installed on the system.
I’ve managed to successfully invoke the dll like this:
<cfset presentation.init("#Expandpath(’./’)#ppt\test1.ppt")>
I can also get the page count for the PPT file like so:
I can also convert one slide to a Bitmap (according to the Aspose docs, that’s
what getThumbnail does > http://www.aspose.com/documentation/.net-components/aspose.slides-for-.net/creating-slide-thumbnail-image-1.html):
<cfset img = slide1.GetThumbnail(1, 1)>
This is where I get stuck. If I write out this Bitmap using CFFILE it results in a 24 byte image which is not recognised as a JPG by my computer. It’s also obviously too small.
Specifying something like
<cfset img = slide1.GetThumbnail(100, 100)>
results in an error.
I’m also unsure as to how to pass an instance of the Size class to the GetThumbnail method.
I was unable to locate the class reference, I tried
and
and
As you can tell, .NET is a bit new to me. If you could provide some tips I’d much appreciate it.
Regards,
Stefan
Regards,
Stefan