Class DocSaveOptions
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.Doc or Aspose.Words.SaveFormat.Dot format.
To learn more, visit the Specify Save Options documentation article.
public class DocSaveOptions : SaveOptions
Inheritance
object ← SaveOptions ← DocSaveOptions
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.DocSaveOptions.SaveFormat property, but in the future will have other options added, such as an encryption password or digital signature settings.
Constructors
DocSaveOptions()
Initializes a new instance of this class that can be used to save a document in the Aspose.Words.SaveFormat.Doc format.
public DocSaveOptions()
DocSaveOptions(SaveFormat)
Initializes a new instance of this class that can be used to save a document in the Aspose.Words.SaveFormat.Doc or Aspose.Words.SaveFormat.Dot format.
public DocSaveOptions(SaveFormat saveFormat)
Parameters
saveFormat
SaveFormat
Can be Aspose.Words.SaveFormat.Doc or Aspose.Words.SaveFormat.Dot.
Properties
AlwaysCompressMetafiles
When false
, small metafiles are not compressed for performance reason.
Default value is true
, all metafiles are compressed regardless of its size.
public bool AlwaysCompressMetafiles { get; set; }
Property Value
DigitalSignatureDetails
Gets or sets Aspose.Words.Saving.DigitalSignatureDetails object used to sign a document.
public DigitalSignatureDetails DigitalSignatureDetails { get; set; }
Property Value
Password
Gets/sets a password to encrypt document using RC4 encryption method.
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.Doc or Aspose.Words.SaveFormat.Dot.
public override SaveFormat SaveFormat { get; set; }
Property Value
SavePictureBullet
When false
, PictureBullet data is not saved to output document.
Default value is true
.
public bool SavePictureBullet { get; set; }
Property Value
Remarks
This option is provided for Word 97, which cannot work correctly with PictureBullet data. To remove PictureBullet data, set the option to "false".
SaveRoutingSlip
When false
, RoutingSlip data is not saved to output document.
Default value is true
.
public bool SaveRoutingSlip { get; set; }