Class DoclingSaveOptions

Class DoclingSaveOptions

Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (26.2.0)

Can be used to specify additional options when saving a document into the Aspose.Words.SaveFormat.Docling format.

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

public class DoclingSaveOptions : SaveOptions

Inheritance

object SaveOptions DoclingSaveOptions

Inherited Members

SaveOptions.CreateSaveOptions(SaveFormat) , SaveOptions.CreateSaveOptions(string) , SaveOptions.SaveFormat , SaveOptions.ExportGeneratorName , SaveOptions.TempFolder , SaveOptions.UpdateOleControlImages , 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()

Examples

Shows how to save a document into a Docling JSON format.

Document doc = new Document(MyDir + "Rendering.docx");

                                                                   DoclingSaveOptions saveOptions = new DoclingSaveOptions();
                                                                   saveOptions.SaveFormat = SaveFormat.Docling;
                                                                   // Set to true to render non-image shapes and include them in the output.
                                                                   // Set to false (default) to exclude non-image shapes from the output.
                                                                   saveOptions.RenderNonImageShapes = true;

                                                                   doc.Save(ArtifactsDir + "DoclingSaveOptions.DoclingJson.json", saveOptions);

Constructors

DoclingSaveOptions()

public DoclingSaveOptions()

Properties

RenderNonImageShapes

Gets or sets a value indicating whether non-image shapes should be rendered and written to the output Docling JSON document.

public bool RenderNonImageShapes { get; set; }

Property Value

bool

Examples

Shows how to save a document into a Docling JSON format.

Document doc = new Document(MyDir + "Rendering.docx");

                                                                   DoclingSaveOptions saveOptions = new DoclingSaveOptions();
                                                                   saveOptions.SaveFormat = SaveFormat.Docling;
                                                                   // Set to true to render non-image shapes and include them in the output.
                                                                   // Set to false (default) to exclude non-image shapes from the output.
                                                                   saveOptions.RenderNonImageShapes = true;

                                                                   doc.Save(ArtifactsDir + "DoclingSaveOptions.DoclingJson.json", saveOptions);

Remarks

If the property is false, non-image shapes are not exported to the output document. The default value is false.

SaveFormat

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

public override SaveFormat SaveFormat { get; set; }

Property Value

SaveFormat

Examples

Shows how to save a document into a Docling JSON format.

Document doc = new Document(MyDir + "Rendering.docx");

                                                                   DoclingSaveOptions saveOptions = new DoclingSaveOptions();
                                                                   saveOptions.SaveFormat = SaveFormat.Docling;
                                                                   // Set to true to render non-image shapes and include them in the output.
                                                                   // Set to false (default) to exclude non-image shapes from the output.
                                                                   saveOptions.RenderNonImageShapes = true;

                                                                   doc.Save(ArtifactsDir + "DoclingSaveOptions.DoclingJson.json", saveOptions);