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.11.0

ExpandedSyntax

public override SaveFormat SaveFormat { get; set; }

Property Value

Type: SaveFormat

ExpandedExamples

Shows how to save a document to .rtf with custom options.
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 = doExportImagesForOldReaders
};

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

ExpandedSee Also