Hi Manju,
Please have a look at the following code below.
spose.Slides.Pptx.PresentationEx pres1 = new Aspose.Slides.Pptx.PresentationEx(@"C:\\New Folder\New Microsoft PowerPoint Presentation.pptx");
//Saving the presentation to HTML
pres1.Save(@"C:\\New Folder\New Microsoft PowerPoint Presentation.html", Aspose.Slides.Export.SaveFormat.Html);
I am not able to upload the ppt and html as it shows some error while clicking on the content selector in the window. Iam using a sample pptx which have only two slides with two image and some text which returns a imageless html page consists all the slides in the same page. I need it as individual page just like a microsoft convert will deliver. Please help.
Hi Manju,
PresentationEx origPres = new PresentationEx(path + “SamplePres.pptx”);PresentationEx tempPres = null;foreach (SlideEx slide in origPres.Slides){tempPres = new PresentationEx();tempPres.Slides.AddClone(slide);tempPres.Slides.RemoveAt(0);tempPres.Save(path + “SamplePres_”+slide.SlideId.ToString()+".html", Aspose.Slides.Export.SaveFormat.Html);}
yes. Now im able to convert to independent files but no images or animations. Please help.
Hi Manju,
In the zip file you already sent to me do not having any images and also the html files shows no image error. Can you please verify it.Please see the screenshot i had attached with this.
Hi,
okey…Yes. I verified the same html file in IE and Mozilla. In IE ,the images are not loading also in Mozilla older versions(mozilla 3.6 and IE 7). Can you please provide a fix for this?
Hi,
when i checked the viewsource what i can find out is given below.
This is supported in chrome and mozilla new version but not in IE. any suggestion?
Hi Manju,
ok…Thank you.
Hi
Hi Konstantin,
Hi Konstantin,
Our development team has investigated the requirements in detail. Actually, Internet Explorer versions before 9.0 completely lack SVG support, so they can't render html with SVG images as Aspose.Slides renders the images in SVG by default.
There are other ways to create vector graphics in HTML, one is using html5 canvas and draw everything using javascript (which is unsupported by pre-9 IE too) and one is using VML languages, which were never supported by any other browser and which use is deprecated even by Microsoft. And one is using some third party plugin such as Adobe Flash. So, there are actually no good options but to fall-back to the bitmaps.
To create html file for IE 8 and earlier, you should replace SVGs with bitmaps as shared in the sample code below. Please share, if I may help you further in this regard.
public static void GenHtml()
{
String path = @"C:\Users\Mudassir\Downloads\";
Aspose.Slides.Export.HtmlOptions htmlOpt = new HtmlOptions();
htmlOpt.SlideImageFormat = SlideImageFormat.Bitmap(0.5f, System.Drawing.Imaging.ImageFormat.Jpeg);
PresentationEx origPres = new PresentationEx(path + "SamplePres.pptx");
PresentationEx tempPres = null;
foreach (SlideEx slide in origPres.Slides)
{
tempPres = new PresentationEx();
tempPres.Slides.AddClone(slide);
tempPres.Slides.RemoveAt(0);
tempPres.Save(path + "SamplePres_New_" + slide.SlideId.ToString() + ".html", Aspose.Slides.Export.SaveFormat.Html, htmlOpt);
}
}
Many Thanks,
The issues you have found earlier (filed as SLIDESNET-33993;SLIDESNET-33973) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.