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
Syntaxpublic override SaveFormat SaveFormat { get; set; }
Public Overrides Property SaveFormat As SaveFormat
Get
Set
public:
virtual property SaveFormat SaveFormat {
SaveFormat get () override;
void set (SaveFormat value) override;
}
abstract SaveFormat : SaveFormat with get, set
override SaveFormat : SaveFormat with get, set
Property Value
Type:
SaveFormat
ExamplesShows how to save a document to .rtf with custom options.
Document doc = new Document(MyDir + "Rendering.docx");
RtfSaveOptions options = new RtfSaveOptions
{
SaveFormat = SaveFormat.Rtf,
ExportCompactSize = true,
ExportImagesForOldReaders = true
};
doc.Save(ArtifactsDir + "RtfSaveOptions.ExportImages.rtf", options);
See Also