Class XamlFixedSaveOptions

Class XamlFixedSaveOptions

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.XamlFixed format.

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

public class XamlFixedSaveOptions : FixedPageSaveOptions

Inheritance

objectSaveOptionsFixedPageSaveOptionsXamlFixedSaveOptions

Inherited Members

FixedPageSaveOptions.Equals(object), FixedPageSaveOptions.AssertValidIdPrefix(string), FixedPageSaveOptions.IsValidIdPrefix(string), FixedPageSaveOptions.PageSet, FixedPageSaveOptions.PageSavingCallback, FixedPageSaveOptions.NumeralFormat, FixedPageSaveOptions.MetafileRenderingOptions, FixedPageSaveOptions.JpegQuality, FixedPageSaveOptions.ColorMode, FixedPageSaveOptions.OptimizeOutput, 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

XamlFixedSaveOptions()

public XamlFixedSaveOptions()

Properties

ResourceSavingCallback

Allows to control how resources (images and fonts) are saved when a document is exported to fixed page Xaml format.

public IResourceSavingCallback ResourceSavingCallback { get; set; }

Property Value

IResourceSavingCallback

ResourcesFolder

Specifies the physical folder where resources (images and fonts) are saved when exporting a document to fixed page Xaml format. Default is null.

public string ResourcesFolder { get; set; }

Property Value

string

Remarks

When you save a Aspose.Words.Document in fixed page Xaml format, Aspose.Words needs to save all images embedded in the document as standalone files. Aspose.Words.Saving.XamlFixedSaveOptions.ResourcesFolder allows you to specify where the images will be saved and Aspose.Words.Saving.XamlFixedSaveOptions.ResourcesFolderAlias allows to specify how the image URIs will be constructed.

If you save a document into a file and provide a file name, Aspose.Words, by default, saves the images in the same folder where the document file is saved. Use Aspose.Words.Saving.XamlFixedSaveOptions.ResourcesFolder to override this behavior.

If you save a document into a stream, Aspose.Words does not have a folder where to save the images, but still needs to save the images somewhere. In this case, you need to specify an accessible folder by using the Aspose.Words.Saving.XamlFixedSaveOptions.ResourcesFolder property

Aspose.Words.Saving.XamlFixedSaveOptions.ResourcesFolderAlias

ResourcesFolderAlias

Specifies the name of the folder used to construct image URIs written into an fixed page Xaml document. Default is null.

public string ResourcesFolderAlias { get; set; }

Property Value

string

Remarks

When you save a Aspose.Words.Document in fixed page Xaml format, Aspose.Words needs to save all images embedded in the document as standalone files. Aspose.Words.Saving.XamlFixedSaveOptions.ResourcesFolder allows you to specify where the images will be saved and Aspose.Words.Saving.XamlFixedSaveOptions.ResourcesFolderAlias allows to specify how the image URIs will be constructed.

Aspose.Words.Saving.XamlFixedSaveOptions.ResourcesFolder

SaveFormat

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

public override SaveFormat SaveFormat { get; set; }

Property Value

SaveFormat