Convert to Presentation with advanced options
Leave feedback
GroupDocs.Conversion offers the PresentationConvertOptions class, allowing developers to have precise control over the conversion process when converting documents to presentation formats. In addition to the common conversion options provided by the base class, PresentationConvertOptions introduces a range of advanced settings to enhance flexibility and meet specific requirements.
Adjusts the zoom level of the converted presentation as a percentage.
The following example demonstrates how to convert a document to a presentation format (e.g., .ppt) using advanced options:
importcom.groupdocs.conversion.Converter;importcom.groupdocs.conversion.filetypes.PresentationFileType;importcom.groupdocs.conversion.options.convert.PresentationConvertOptions;publicclassConvertToPresentationWithAdvancedOptions{publicstaticvoidconvert(){// Load the source document
try(Converterconverter=newConverter("annual-review.docx")){// Configure presentation conversion options
PresentationConvertOptionsoptions=newPresentationConvertOptions();options.setPageNumber(2);// Start conversion from page 2
options.setPagesCount(1);// Convert only 1 page
options.setFormat(PresentationFileType.Ppt);// Set output format to PowerPoint (.ppt)
// Perform the conversion
converter.convert("converted_with_options.ppt",options);}}publicstaticvoidmain(String[]args){convert();}}
annual-review.docx is sample file used in this example. Click here to download it.
converted_with_options.ppt is converted PPT document. Click here to download it.
By using advanced conversion options, developers can fine-tune the output presentation to ensure compatibility, security, and optimal formatting, making it a powerful tool for both professional and personal use.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.