Hi all, Just the disclaimer upfront again, I'm primarily a Flex developer so please be gentle :-)
I'm trying to invoke some .NET dlls using Aspose components which facilitate (amongst other things) conversions of Office documents to other formats. Here I'm trying to convert PPT files to images. I've managed to successfully invoke the dll like this: <cfobject type=".NET" name="presentation" class="Aspose.Slides.Presentation" assembly="#Expandpath('./')#\libs\Aspose.Slides.dll"> <cfset presentation.init("#Expandpath('./')#ppt\test1.ppt")> I can also get the page count for the PPT file like so: <cfset pageCount = presentation.Get_Slides().Get_Count()> 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 slide1 = presentation.GetSlideByPosition(1)> <cfset img = slide1.GetThumbnail(1, 1)> This is where I get stuck. How can I write this bitmap to disk now? The Aspose C# example looks liek this: Bitmap bmp = sld.GetThumbnail(1f, 1f); bmp.Save("d:\\pptx\\ContentBG_tnail.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); I'd like to do the equivalent in CF. BTW I tried to use <cfset img = slide1.GetThumbnail(1f, 1f)> which threw an error but <cfset img = slide1.GetThumbnail(1, 1)> seemed to work. Am I correct up to that point? I think once I know how to write the image to disk I will be able to figure out how to loop over all available slides and write them out one by one. Any help appreciated. Regards, Stefan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338780 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm