Class OdtSaveOptions
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.Odt or Aspose.Words.SaveFormat.Ott format.
To learn more, visit the Specify Save Options documentation article.
public class OdtSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← OdtSaveOptions
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()
Remarks
At the moment provides only the Aspose.Words.Saving.OdtSaveOptions.SaveFormat property, but in the future will have other options added, such as an encryption password or digital signature settings.
Constructors
OdtSaveOptions()
Initializes a new instance of this class that can be used to save a document in the Aspose.Words.SaveFormat.Odt format.
public OdtSaveOptions()
OdtSaveOptions(string)
Initializes a new instance of this class that can be used to save a document in the Aspose.Words.SaveFormat.Odt format encrypted with a password.
public OdtSaveOptions(string password)
Parameters
password
string
OdtSaveOptions(SaveFormat)
Initializes a new instance of this class that can be used to save a document in the Aspose.Words.SaveFormat.Odt or Aspose.Words.SaveFormat.Ott format.
public OdtSaveOptions(SaveFormat saveFormat)
Parameters
saveFormat
SaveFormat
Can be Aspose.Words.SaveFormat.Odt or Aspose.Words.SaveFormat.Ott.
Properties
DigitalSignatureDetails
Gets or sets Aspose.Words.Saving.DigitalSignatureDetails object used to sign a document.
public DigitalSignatureDetails DigitalSignatureDetails { get; set; }
Property Value
IsStrictSchema11
Specifies whether export should correspond to ODT specification 1.1 strictly.
OOo 3.0 displays files correctly when they contain elements and attributes of ODT 1.2.
Use “false” for this purpose, or “true” for strict conformity of specification 1.1.
The default value is false
.
public bool IsStrictSchema11 { get; set; }
Property Value
MeasureUnit
Allows to specify units of measure to apply to document content. The default value is Aspose.Words.Saving.OdtSaveMeasureUnit.Centimeters
public OdtSaveMeasureUnit MeasureUnit { get; set; }
Property Value
Remarks
Open Office uses centimeters when specifying lengths, widths and other measurable formatting and content properties in documents whereas MS Office uses inches.
Password
Gets or sets a password to encrypt document.
public string Password { get; set; }
Property Value
Remarks
In order to save document without encryption this property should be null
or empty string.
SaveFormat
Specifies the format in which the document will be saved if this save options object is used. Can be Aspose.Words.SaveFormat.Odt or Aspose.Words.SaveFormat.Ott.
public override SaveFormat SaveFormat { get; set; }