RtfSaveOptionsSaveFormat Property

Specifies the format in which the document will be saved if this save options object is used. Can only be Rtf.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public override SaveFormat SaveFormat { get; set; }

Property Value

Type: SaveFormat
Examples
Shows how to save a document to .rtf with custom options.
// Open a document with images
Document doc = new Document(MyDir + "Rendering.docx");

// Configure a RtfSaveOptions instance to make our output document more suitable for older devices
RtfSaveOptions options = new RtfSaveOptions
{
    SaveFormat = SaveFormat.Rtf,
    ExportCompactSize = true,
    ExportImagesForOldReaders = true
};

doc.Save(ArtifactsDir + "RtfSaveOptions.ExportImages.rtf", options);
See Also