Example: Converting from PPT to Various File Formats

 

Note: To convert PPT to HTML, RTF, PDF, JPG or any of the other output file formats instead of text, simply swap /C200 with the appropriate number (see File Type Constants for a complete listing) in the examples below and change the type of the target folder (specified by the /T item) to the correct type.

 

Rich Text Format

To convert all slides of a PowerPoint file, C:\PowerPoint\Semi.ppt, to a single rich text format file named C:\PPTOutput\SemiRichText.rtf use the following syntax:

 

ConvertPPT /S "C:\PowerPoint\Semi.ppt" /T "C:\PPTOutput\SemiRichText.rtf" /C106 /V

Note that there are two RTF formats available, #6 and #106. Specifying RTF format with the number 6 will do a textual conversion only. Any text that may be embedded in a graphic within PowerPoint will be ignored and will not be converted. Specifying RTF format 106 will do a conversion that includes graphics, creating an image that will display in MS Word.

 

It is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is.

 

PDF Format

Convert slides 2 through 5 of a PowerPoint file, C:\PowerPoint\Semi.ppt, to a single PDF format file named C:\PPTOutput\SemiPDF.pdf. Verbose mode invoked for on-screen confirmation. Use the following syntax:

 

ConvertPPT /S "C:\PowerPoint\Semi.ppt" /T "C:\PPTOutput\SemiPDF.pdf" /Y2 /Z5 /C300 /V

Note that Advanced PDF options cannot be set from the command line (e.g. Page and Document Settings, Paragraph Formatting, Font, etc.). They must be set in the user interface prior to using the command line.

 

It is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is.

 

HTML Format

Convert all PowerPoint files in the specified folder to HTML format, saving them in the same folder as the originals. Verbose mode invoked for on-screen confirmation:

 ConvertPPT /S "C:\PowerPoint\*.ppt"/ /G /C12 /E /V

 

Note it is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is.

 

Word (.doc) Format

Convert all slides of a PowerPoint file, C:\PowerPoint\Semi.ppt, to a single DOC format file named C:\PPTOutput\SemiDOC.doc. Verbose mode invoked for on-screen confirmation. Use the following syntax:

 

ConvertPPT /S "C:\PowerPoint\Semi.ppt" /T "C:\PPTOutput\SemiDOC.doc" /C101 /V

 

Note it is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is.