Convert to Presentation
GroupDocs.Conversion can convert any source document to the following presentation formats: Ppt, Pps, Pptx, Ppsx, Odp, Otp, Potx, Pot, Potm, Pptm, Ppsm. When just instantiate the PresentationConvertOptions class without specifying the target format explicitly, Pptx will be used as a default format.
Conversion to presentation format could be triggered by following below steps:
- Create new instance of Converter class and pass source document path as a constructor parameter
- Instantiate PresentationConvertOptions class.
- Call convert method of Converter class instance and pass filename for the converted document and the instance of PresentationConvertOptions from the previous step
The following code show how to convert any document to presentation.
Converter converter = new Converter("sample.docx");
PresentationConvertOptions options = new PresentationConvertOptions();
converter.convert("converted.pptx", options);