iSpring SDK contains an iSpringSDK.exe command line application that is based on iSpring SDK COM API. This application provides a command line interface to the iSpring SDK functionality and can be used to perform batch conversion from a command line or shell scripts and other automation tools.

Command Line Syntax

The general iSpring command line application syntax is:

iSpringSDK.exe <command> [command parameters]
CODE

By starting the command line application without any parameters, one gets information about the version and license.

The command parameter specifies an action the command application will perform. The commands may have a short alias that simplifies and accelerates command line application use.

The following commands are currently supported:

CommandShort AliasCommand Description
help

Provides a list of available commands and their parameters.

iSpringSDK.exe help

activatea

Activates the iSpring SDK license.

For the online license activation, the syntax is:

iSpringSDK.exe activate <license key>

or

iSpringSDK.exe a <license key>

Example:

iSpringSDK.exe a "QJ0K7-Y8H10-CSG6C-GP688-P49R9-FBF4H-T15CG-J040M-DPSGJ-CGJ99"

For the manual license activation, the syntax is:

iSpringSDK.exe activate <license key> [activation code]

or

iSpringSDK.exe a <license key> [activation code]

Example:

iSpringSDK.exe a "QJ0K7-Y8H10-CSG6C-GP688-P49R9-FBF4H-T15CG-J040M-DPSGJ-CGJ99" "SZyImYekO/SruTA8+xDtZsfrcnOOnoaG9J304M1smoOeJ3axeVHOOWliPKB="

deactivated
Deactivates the iSpring SDK license. The syntax is:


iSpringSDK.exe deactivate

or

iSpringSDK.exe d

Deactivation requires an Internet connection.

activate-requestar

Provides an activation request code that is needed when you want to activate your license manually.

This happens when there is no active Internet connection.

iSpringSDK.exe activate-request

or

iSpringSDK.exe ar

After you get the activation request code, send it, along with your license key, to our Support Department. Our employees will then get back to you with a license activation code. 

See the activate command description to learn how to run a command that will manually activate your license. 

generate-htmlh

Performs batch conversion of PowerPoint presentations to HTML format.
The syntax is:

iSpringSDK.exe generate-html [options] <pptx> <html> [<pptx> <html> ...]

or

iSpringSDK.exe h [options] <pptx> <html> [<pptx> <html> ...]

Example:

iSpringSDK.exe h presentation1.pptx presentation1/index.html presentation2.pptx presentation2/index.html

generate-thumbnailst

Generates thumbnails for the presentation slides. The syntax is: 

iSpringSDK.exe generate-thumbnails [options] <source ppt> <destination folder>

or

iSpringSDK.exe t [options] <source ppt> <destination folder>

Example:

iSpringSDK.exe t presentation1.pptx myfolder

scan

Scans the presentation for external multimedia resources. The syntax is:

iSpringSDK.exe scan [options] <source-ppt> 

Example:

iSpringSDK.exe scan c:/HTML/presentation1.pptx

The information about external resources found during a scan is displayed like this::

<presentationInfo>  

  <externalResources>    

    <videoShape path="..." status="notFound/foundByAbsolutePath/foundByRelativePath"/

    <soundShape path="..." status="notFound/foundByAbsolutePath/foundByRelativePath"/>       

    ...  

  </externalResources> 

</presentationInfo>

Presentation Conversion Options

Compression
OptionShort AliasDefault ValueOption Description
--audio-bitrate <bitrate>-ab128Specifies audio files bitrate (kbit/s).
Supported values: 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, and original.

--video-bitrate <bitrate>

-vb400Specifies video files bitrate. Possible values are between 50 and 4000 kbit/s.

--image-quality <image quality>




-iqoriginal

Specifies a compression ratio (0...100%) applied to non-photorealistic images such as charts, graphs, diagrams, and clip art objects.

Note: possible values are integers from 1 to 100 specifying lossy JPEG compression quality or an original value, meaning that lossless PNG compression is applied. Higher JPEG compression quality values result in higher image quality, the lower values result in smaller HTML content size.

--photo-image-quality <jpeg quality>

-piq75

Specifies a compression ratio (0...100%) applied to photorealistic images such as photos and complex pictures. 

Note: possible values are integers from 1 to 100 specifying lossy JPEG compression quality or an original value, meaning that lossless PNG compression is applied. Higher JPEG compression quality values result in higher image quality, the lower values result in smaller HTML content size.

When the --photo-image-quality option is not specified explicitly, its value is equal to the --image-quality option.

In most cases, the highest image quality to HTML content size ratio is provided by setting an image quality to the original value, while jpeg image quality values are between 65 and 85.

--gif-image-quality <gif quality>



-giq75

Specifies a compression ratio (0...100%) applied to animated GIF images. 

When the --gif-image-quality option is not specified explicitly, its value is equal to the --image-quality option.

In most cases, the highest image quality to HTML content size ratio is provided by setting an image quality to the original value, while gif image quality values are between 65 and 85.

--zip-output-file-name <file name>-zof
Specifies the file name for a zip archive. 
--zip-preserve-source-file -zp
Saves presentation files after zipping them.
--keep-original-media <on/off>-omoffKeep original media files if possible.

Animation and playback

OptionShort AliasDefault ValueOption Description
--shape-animations <on/off>-aon

Converts animation effects.

--transition-effects <on/off>-tonConverts slide transition effects.
--loop-presentation <on/off>-lpoffIndicates whether the presentation playback is looped.
--auto-step-advance <on/off>-saoffIndicates whether slide animation steps are played automatically.
--step-advance-time <seconds>-st5Sets minimal animation step duration in seconds (0...100).
--auto-start <on/off>
onIndicates whether the presentation playback starts automatically.
--export-slide-background <on/off>-ebonSpecifies whether the custom slide background is exported.
--change-slides-automatically-csaoffIndicate whether the next slide is played automatically.
--minimal-slide-duration <seconds>-msd5Specifies the minimal slide duration, in seconds (0...1000).
--resume-presentation <always/prompt/off>-rpoffResumes presentation playback from the last slide that was viewed. When the prompt value is selected, the user will be asked if they would like to resume where they left off upon opening the presentation that they had been viewing.
--enable-local-3d-transitions
disabledEnable transitions playback from local disc.

Appearance

OptionShort AliasDefault ValueOption Description
--width <pixels>-w

The presentation width in pixels (4...5000).

--height <pixels>-h
The presentation height in pixels (4..,5000). 
--scale <percentage>-s

Specifies slide scale (in percents). Note: this option must not be used with --width and --height options.

--screen-size <width> <height>-ss

Optimizes images for screens with specific dimensions (96...8192 pixels). 

--bgcolor <color> or "none"-b#FFFFFFThe background color in RRGGBB format or "none" for transparent page.
--skin <id>

Select skin for conversion. Skin ID is specified in a skin description file (player.xml). Skin descriptions are located in the players folder, which can be found in the iSpring SDK installation folder.

Output control

OptionShort AliasDefault ValueOption Description
--zip-z
Creates a ZIP archive with the generated HTML content.
--xml <file name>-x
Creates an XML file with the XML description of the generated HTML content.
--format <solid/compound>-f
Specifies output format. The following options are available: solid; compound.
--fast <on/off>
onPerforms fast conversion (runs iSpring inside of the PowerPoint process).
--fit-to-window-fw
Fits the presentation to the window.
--audio-quality <% or "original">-aq75Specifies audio quality in percents (0...100%).
--video-quality <% or "original">-vq75Specifies video quality in percents (0...100%).
--preserve-audio <on/off>-paonConverts presentation audio.
--preserve-video <on/off>-pvonConverts presentation video.
--extended-media-compatibility

Converts video to mp4 and webm, and audio to mp3 and ogg. It makes presentation media compatible with a wide range of devices and browsers, but increases their size.
--preserve-metadata <on/off>-pmonDefines whether or not to export presentation meta data (title, slide texts, notes, hyperlink tooltips, references, presenter and company info).

Multimedia control

OptionShort AliasDefault ValueOption Description
--video-player "none" or "standard"-vpstandard

Selects video player type.
The standard video player, which is similar to the PowerPoint 2010 video player provides playback and sound volume control facilities.

The none video player is similar to the PowerPoint 2000-2007 video player and provides no playback or sound volume control facilities.

--advanced-smart-art-processing
off

Enables advanced processing of Office 2007 SmartArt objects.

Turning this option on can improve the quality of SmartArt object conversion. When turned on, this option opens a PowerPoint application window and uses the Windows clipboard during conversion.

Navigation 

OptionShort AliasDefault ValueOption Description
--enable-hyperlinks <on/off>-hlonEnables hyperlinks in the presentation.
--hyperlinks-target <_self / _blank / custom frame name>-ht_blankSpecifies a browser window where hyperlinks to external resources are opened.
--click-advance-type <none/slide/step>-mctstepSpecifies the way the mouse click advances the presentation: to the next slide or to the next animation step.
--enable-keyboard-navigation <on/off>-konAllows keyboard navigation in the converted presentation.
--keyboard-settings-file <file name>-ksf
Loads keyboard settings from the specified XML file.
--enable-zooming <on/off>-gzonEnables Zoom gestures.

Security

OptionShort AliasDefault ValueOption Description
--restricted-domains <name>-rd
Specifies the domain name (or names separated by semicolons) where the HTML presentation playback that has been generated is allowed. This property prevents HTML presentation playback on an unauthorized domain or a local computer. If this option is omitted, HTML content is generated without playback restrictions.
--subdomain-communication-mode <disabled/optional/enabled>-sdcmdisabled

An enabled value allows communication between the presentation and scripts located on different subdomains.

An optional value allows communication if the presentation was opened with the enableSubdomainCommunication=1 parameter.
--watermark <file-path>-wm
The path to a bitmap or an SWF file that will be used as a watermark.
--watermark-alignment <alignment>-waleft-topSpecifies watermark alignment. Possible <alignment> values are: left-top, center-top, right-top, left-middle, center-middle, right-middle, left-bottom, center-bottom, and right-bottom.
--watermark-offset-x <offset x>-wx
Sets the horizontal offset of the watermark from the alignment point.
--watermark-offset-y <offset y>-wy
Sets the vertical offset of the watermark from the alignment point.
--watermark-opacity <opacity>-wo100Sets watermark opacity (0...100%).
--watermark-url <url>-wu
Specifies a web page address that is opened on the mouse click.
--watermark-target <target>-wtg_blankSpecifies the name of the browser window where the URL specified with the --watermark-url option is opened.
--password <password>-pw
Protects the generated HTML presentation from unauthorized viewing with a specified password.
--start-time <YYYY.MM.DD>

Specifies the start date from which the presentation can be viewed.
--end-time <YYYY.MM.DD>

Specifies the end date to which the presentation can be viewed.

--sub-domain-communication

-sdc
Allow communication between presentation and scripts, located on different subdomains.

Miscellaneous

OptionShort AliasDefault ValueOption Description
--settings-file <file path>-sf

Loads the presentation conversion settings from the specified XML file. 

Note: The settings XML file can be created with the Code Builder or via COM API using the Save() method of the ISettings interface.

--verbose-v
Outputs conversion progress to console.
--temp <folder path>

Specifies the folder for temporary files.
--log <file path>

Specifies a log file name where presentation conversion progress is stored.
--range <slide indices>-r

Specifies slide indices to be converted to HTML format.

iSpringSDK.exe -r 0,1,3,8-15 presentation.pptx

--enable-js-api-in-html5

Exposes JavaScript API to the generated HTML5 presentations.

Thumbnail Generation Options

OptionShort AliasDefault ValueOption Description
--range <slide indices>-r
Specifies slide indices to be processed. Example: 0, 1, 3, 5-10.
--width <pixels>-w
The thumbnail width.
--height <pixels>-h
The thumbnail height.
--format <wmf/png/jpg/bmp>-fwmfSpecifies the thumbnail file format.
--prefix <thumbnail file name prefix>-pthumbSpecifies the thumbnail file prefix.
--quality <percentage>-q75Specifies JPEG thumbnail quality.

Presentation Scan Options

OptionShort AliasDefault ValueOption Description
--range <slide indices>-r
Specifies slide indices to be processed. Example: 0, 1, 3, 5-10.
--output <output file name>-o
Specifies the output file name.
--scan-mode <default/relative/absolute>-mdefaultSpecifies presentation path scan mode.