Convert to WordProcessing with advanced options

GroupDocs.Conversion provides WordProcessingConvertOptions to give you control over conversion result when convert to WordProcessing formats. Along with common convert options from base class WordProcessingConvertOptions has the following additional options:

  • setFormat -  desired result document type. Available options are: Doc, Docm, Docx, Dot, Dotx, Rtf, Odt, Ott, Mobi, Txt
  • setWidth - desired page width after conversion
  • setHeight -  desired page height after conversion
  • setDpi - desired page dpi after conversion
  • setPassword - if set, the converted document will be password protected with the specified password
  • setRtfOptions - RTF specific options. RtfOptions class has single option setExportImagesForOldReaders - specifies whether the keywords for “old readers” are written to RTF or not. This can significantly affect the size of the RTF document.
  • setZoom - specifies the zoom level in percentage

Following code snippet shows how to convert to WordProcessing document with advanced options

Converter converter = new Converter("sample.pdf");

WordProcessingConvertOptions options = new WordProcessingConvertOptions();
converter.convert("converted.odt", options);

© Aspose Pty Ltd 2001-2022. All Rights Reserved.