Class RtfSaveOptions

Class RtfSaveOptions

Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.3.0)

Can be used to specify additional options when saving a document into the Aspose.Words.SaveFormat.Rtf format.

To learn more, visit the Specify Save Options documentation article.

public class RtfSaveOptions : SaveOptions

Inheritance

objectSaveOptionsRtfSaveOptions

Inherited Members

SaveOptions.CreateSaveOptions(SaveFormat), SaveOptions.CreateSaveOptions(string), SaveOptions.SaveFormat, SaveOptions.ExportGeneratorName, SaveOptions.TempFolder, SaveOptions.PrettyFormat, SaveOptions.UseAntiAliasing, SaveOptions.UseHighQualityRendering, SaveOptions.DmlRenderingMode, SaveOptions.DmlEffectsRenderingMode, SaveOptions.ImlRenderingMode, SaveOptions.DefaultTemplate, SaveOptions.UpdateFields, SaveOptions.UpdateLastSavedTimeProperty, SaveOptions.UpdateLastPrintedProperty, SaveOptions.UpdateCreatedTimeProperty, SaveOptions.MemoryOptimization, SaveOptions.UpdateAmbiguousTextFont, SaveOptions.Dml3DEffectsRenderingMode, SaveOptions.ProgressCallback, SaveOptions.AllowEmbeddingPostScriptFonts, SaveOptions.CustomTimeZoneInfo, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

RtfSaveOptions()

public RtfSaveOptions()

Properties

ExportCompactSize

Allows to make output RTF documents smaller in size, but if they contain RTL (right-to-left) text, it will not be displayed correctly.

Default value is false.

public bool ExportCompactSize { get; set; }

Property Value

bool

Remarks

If the document that you want to convert to RTF using Aspose.Words does not contain right-to-left text in languages like Arabic, then you can set this option to true to reduce the size of the resulting RTF.

ExportImagesForOldReaders

Specifies whether the keywords for “old readers” are written to RTF or not. This can significantly affect the size of the RTF document.

Default value is true.

public bool ExportImagesForOldReaders { get; set; }

Property Value

bool

Remarks

"Old readers" are pre-Microsoft Word 97 applications and also WordPad. When this option is true Aspose.Words writes additional RTF keywords. These keywords allow the document to be displayed correctly when opened in an "old reader" application, but can significantly increase the size of the document.

If you set this option to false, then only images in WMF, EMF and BMP formats will be displayed in "old readers".

SaveFormat

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

public override SaveFormat SaveFormat { get; set; }

Property Value

SaveFormat

SaveImagesAsWmf

When true all images will be saved as WMF.

public bool SaveImagesAsWmf { get; set; }

Property Value

bool

Remarks

This option might help to avoid WordPad warning messages.