Aspose::Words::Saving::RtfSaveOptions class
Contents
[
Hide
]RtfSaveOptions class
Can be used to specify additional options when saving a document into the Rtf format. To learn more, visit the Specify Save Options documentation article.
class RtfSaveOptions : public Aspose::Words::Saving::SaveOptions
Methods
Method | Description |
---|---|
static CreateSaveOptions(Aspose::Words::SaveFormat) | Creates a save options object of a class suitable for the specified save format. |
static CreateSaveOptions(const System::String&) | Creates a save options object of a class suitable for the file extension specified in the given file name. |
get_AllowEmbeddingPostScriptFonts() const | Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false. |
get_CustomTimeZoneInfo() const | |
get_DefaultTemplate() const | Gets or sets path to default template (including filename). Default value for this property is empty string. |
get_Dml3DEffectsRenderingMode() const | Gets a value determining how 3D effects are rendered. |
virtual get_DmlEffectsRenderingMode() | Gets or sets a value determining how DrawingML effects are rendered. |
get_DmlRenderingMode() const | Gets or sets a value determining how DrawingML shapes are rendered. |
get_ExportCompactSize() const | 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. |
get_ExportGeneratorName() const | When true, causes the name and version of Aspose.Words to be embedded into produced files. Default value is true. |
get_ExportImagesForOldReaders() const | 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. |
get_ImlRenderingMode() const | Gets or sets a value determining how ink (InkML) objects are rendered. |
get_MemoryOptimization() const | Gets or sets value determining if memory optimization should be performed before saving the document. Default value for this property is false. |
get_PrettyFormat() const | When true, pretty formats output where applicable. Default value is false. |
get_ProgressCallback() const | Called during saving a document and accepts data about saving progress. |
get_SaveFormat() override | Specifies the format in which the document will be saved if this save options object is used. Can only be Rtf. |
get_SaveImagesAsWmf() const | When true all images will be saved as WMF. |
get_TempFolder() const | Specifies the folder for temporary files used when saving to a DOC or DOCX file. By default this property is null and no temporary files are used. |
get_UpdateCreatedTimeProperty() const | Gets a value determining whether the CreatedTime property is updated before saving. Default value is false;. |
get_UpdateFields() const | Gets or sets a value determining if fields of certain types should be updated before saving the document to a fixed page format. Default value for this property is true. |
get_UpdateLastPrintedProperty() const | Gets or sets a value determining whether the LastPrinted property is updated before saving. |
get_UpdateLastSavedTimeProperty() const | Gets or sets a value determining whether the LastSavedTime property is updated before saving. |
get_UseAntiAliasing() const | Gets or sets a value determining whether or not to use anti-aliasing for rendering. |
get_UseHighQualityRendering() const | Gets or sets a value determining whether or not to use high quality (i.e. slow) rendering algorithms. |
GetType() const override | |
Is(const System::TypeInfo&) const override | |
RtfSaveOptions() | |
set_AllowEmbeddingPostScriptFonts(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_AllowEmbeddingPostScriptFonts. |
set_CustomTimeZoneInfo(const System::SharedPtr<System::TimeZoneInfo>&) | |
set_DefaultTemplate(const System::String&) | Setter for Aspose::Words::Saving::SaveOptions::get_DefaultTemplate. |
set_Dml3DEffectsRenderingMode(Aspose::Words::Saving::Dml3DEffectsRenderingMode) | Sets a value determining how 3D effects are rendered. |
virtual set_DmlEffectsRenderingMode(Aspose::Words::Saving::DmlEffectsRenderingMode) | Setter for Aspose::Words::Saving::SaveOptions::get_DmlEffectsRenderingMode. |
set_DmlRenderingMode(Aspose::Words::Saving::DmlRenderingMode) | Setter for Aspose::Words::Saving::SaveOptions::get_DmlRenderingMode. |
set_ExportCompactSize(bool) | Setter for Aspose::Words::Saving::RtfSaveOptions::get_ExportCompactSize. |
set_ExportGeneratorName(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_ExportGeneratorName. |
set_ExportImagesForOldReaders(bool) | Setter for Aspose::Words::Saving::RtfSaveOptions::get_ExportImagesForOldReaders. |
set_ImlRenderingMode(Aspose::Words::Saving::ImlRenderingMode) | Setter for Aspose::Words::Saving::SaveOptions::get_ImlRenderingMode. |
set_MemoryOptimization(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_MemoryOptimization. |
set_PrettyFormat(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_PrettyFormat. |
set_ProgressCallback(const System::SharedPtr<Aspose::Words::Saving::IDocumentSavingCallback>&) | Setter for Aspose::Words::Saving::SaveOptions::get_ProgressCallback. |
set_SaveFormat(Aspose::Words::SaveFormat) override | Setter for Aspose::Words::Saving::RtfSaveOptions::get_SaveFormat. |
set_SaveImagesAsWmf(bool) | Setter for Aspose::Words::Saving::RtfSaveOptions::get_SaveImagesAsWmf. |
set_TempFolder(const System::String&) | Setter for Aspose::Words::Saving::SaveOptions::get_TempFolder. |
set_UpdateCreatedTimeProperty(bool) | Sets a value determining whether the CreatedTime property is updated before saving. Default value is false;. |
set_UpdateFields(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_UpdateFields. |
set_UpdateLastPrintedProperty(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_UpdateLastPrintedProperty. |
set_UpdateLastSavedTimeProperty(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_UpdateLastSavedTimeProperty. |
set_UseAntiAliasing(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_UseAntiAliasing. |
set_UseHighQualityRendering(bool) | Setter for Aspose::Words::Saving::SaveOptions::get_UseHighQualityRendering. |
static Type() |
Examples
Shows how to save a document to .rtf with custom options.
auto doc = MakeObject<Document>(MyDir + u"Rendering.docx");
// Create an "RtfSaveOptions" object to pass to the document's "Save" method to modify how we save it to an RTF.
auto options = MakeObject<RtfSaveOptions>();
ASSERT_EQ(SaveFormat::Rtf, options->get_SaveFormat());
// Set the "ExportCompactSize" property to "true" to
// reduce the saved document's size at the cost of right-to-left text compatibility.
options->set_ExportCompactSize(true);
// Set the "ExportImagesFotOldReaders" property to "true" to use extra keywords to ensure that our document is
// compatible with pre-Microsoft Word 97 readers and WordPad.
// Set the "ExportImagesFotOldReaders" property to "false" to reduce the size of the document,
// but prevent old readers from being able to read any non-metafile or BMP images that the document may contain.
options->set_ExportImagesForOldReaders(exportImagesForOldReaders);
doc->Save(ArtifactsDir + u"RtfSaveOptions.ExportImages.rtf", options);
See Also
- Class SaveOptions
- Namespace Aspose::Words::Saving
- Library Aspose.Words for C++