AddFromHtml
Contents
[
Hide
]AddFromHtml(string, IExternalResourceResolver, string)
Creates slides from HTML text and adds them to the end of the collection.
public ISlide[] AddFromHtml(string htmlText, IExternalResourceResolver resolver, string uri)
Parameter | Type | Description |
---|---|---|
htmlText | String | Html to add. |
resolver | IExternalResourceResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
uri | String | An URI of the specified HTML. Used to resolve relative links. |
Return Value
Added slides.
See Also
- interface ISlide
- interface IExternalResourceResolver
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromHtml(string)
Creates slides from HTML text and adds them to the end of the collection.
public ISlide[] AddFromHtml(string htmlText)
Parameter | Type | Description |
---|---|---|
htmlText | String | Html to add. |
Return Value
Added slides
See Also
- interface ISlide
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromHtml(TextReader, IExternalResourceResolver, string)
Creates slides from HTML text and adds them to the end of the collection.
public ISlide[] AddFromHtml(TextReader htmlReader, IExternalResourceResolver resolver, string uri)
Parameter | Type | Description |
---|---|---|
htmlReader | TextReader | TextReader object which will be used as a source of a HTML file. |
resolver | IExternalResourceResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
uri | String | An URI of the specified HTML. Used to resolve relative links. |
Return Value
Added slides.
See Also
- interface ISlide
- interface IExternalResourceResolver
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromHtml(TextReader)
Creates slides from HTML text and adds them to the end of the collection.
public ISlide[] AddFromHtml(TextReader htmlReader)
Parameter | Type | Description |
---|---|---|
htmlReader | TextReader | TextReader object which will be used as a source of a HTML file. |
Return Value
Added slides
See Also
- interface ISlide
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromHtml(Stream, IExternalResourceResolver, string)
Creates slides from HTML text and adds them to the end of the collection.
public ISlide[] AddFromHtml(Stream htmlStream, IExternalResourceResolver resolver, string uri)
Parameter | Type | Description |
---|---|---|
htmlStream | Stream | A Stream object which will be used as a source of a HTML file. |
resolver | IExternalResourceResolver | A callback object used to fetch external objects. If this parameter is null all external objects will be ignored. |
uri | String | An URI of the specified HTML. Used to resolve relative links. |
Return Value
Added slides.
See Also
- interface ISlide
- interface IExternalResourceResolver
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddFromHtml(Stream)
Creates slides from HTML text and adds them to the end of the collection.
public ISlide[] AddFromHtml(Stream htmlStream)
Parameter | Type | Description |
---|---|---|
htmlStream | Stream | A Stream object which will be used as a source of a HTML file. |
Return Value
Added slides
Examples
[C#]
// Create an instance of the Presentation class.
using (var presentation = new Presentation())
{
using (var htmlStream = File.OpenRead("page.html"))
{
// Call the AddFromHtml method and pass the HTML file.
presentation.Slides.AddFromHtml(htmlStream);
}
// Use the Save method to save the file as a PowerPoint document.
presentation.Save("MyPresentation.pptx", SaveFormat.Pptx);
}
See Also
- interface ISlide
- class SlideCollection
- namespace Aspose.Slides
- assembly Aspose.Slides