RtfSaveOptionsExportCompactSize Property

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.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.11.0

ExpandedSyntax

public bool ExportCompactSize { get; set; }

Property Value

Type: Boolean

ExpandedRemarks

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.

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