The GenerateHtml5Presentation method converts a PowerPoint presentation into an HTML5 presentation.

Syntax

void GenerateHtml5Presentation(string htmlFilePath, PresentationType type=PT_COMPOUND, string skinId="", object slideRange=null)
CODE

Parameters

htmlFilePath - presentation target path. A required string parameter.

type - an optional PresentationType parameter. The default value is PT_COMPOUND.

skinId - an optional string parameter. Skin ID must correspond to the ISkin.Id property of the desired skin.

slideRange - an optional parameter. Slide Range can be an array of slides, a native PowerPoint SlideRange object, an integer slide index or a string in such format: 

0,3,8-15
CODE

Indexes of slides are 0-based.

Description

This method starts the PPT to HTML5 presentation conversion process.

Return value

none

C# Sample

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using iSpring;
using System.Runtime.InteropServices;
using System.Diagnostics;

namespace ispring_samples
{
    class converter
    {
        static void Main(string[] args)
        {
            var inFileInfo = new FileInfo(args[0]);
            var outFileInfo = new System.IO.FileInfo(args[1]);
            var converter = new PresentationConverter();

            try
            {
                converter.OpenPresentation(inFileInfo.FullName);
                converter.GenerateHtml5Presentation(outFileInfo.FullName, PresentationType.PT_COMPOUND, string.Empty, "0,3,8-15");
                converter.Presentation.Close();
            }
            catch (Exception exception)
            {
                Console.WriteLine("Error: " + exception.Message);
            }
            finally
            {
                Marshal.ReleaseComObject(converter);
            }
        }
    }
}
C#