SaveOptions Class |
The SaveOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | AllowEmbeddingPostScriptFonts |
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.
|
![]() ![]() | DefaultTemplate |
Gets or sets path to default template (including filename).
Default value for this property is empty string (Empty).
|
![]() | Dml3DEffectsRenderingMode |
Gets or sets a value determining how 3D effects are rendered.
|
![]() ![]() | DmlEffectsRenderingMode |
Gets or sets a value determining how DrawingML effects are rendered.
|
![]() ![]() | DmlRenderingMode |
Gets or sets a value determining how DrawingML shapes are rendered.
|
![]() ![]() | MemoryOptimization |
Gets or sets value determining if memory optimization should be performed before saving the document.
Default value for this property is false.
|
![]() ![]() | PrettyFormat |
When true, pretty formats output where applicable.
Default value is false.
|
![]() ![]() | SaveFormat |
Specifies the format in which the document will be saved if this save options object is used.
|
![]() ![]() | TempFolder |
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.
|
![]() ![]() | UpdateFields |
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.
|
![]() ![]() | UpdateLastPrintedProperty |
Gets or sets a value determining whether the LastPrinted property is updated before saving.
|
![]() ![]() | UpdateLastSavedTimeProperty |
Gets or sets a value determining whether the LastSavedTime property is updated before saving.
|
![]() ![]() | UpdateSdtContent |
Gets or sets value determining whether content of StructuredDocumentTag is updated before saving.
|
![]() ![]() | UseAntiAliasing |
Gets or sets a value determining whether or not to use anti-aliasing for rendering.
|
![]() ![]() | UseHighQualityRendering |
Gets or sets a value determining whether or not to use high quality (i.e. slow) rendering algorithms.
|
Name | Description | |
---|---|---|
![]() ![]() ![]() | CreateSaveOptions(String) |
Creates a save options object of a class suitable for the file extension specified in the given file name.
|
![]() ![]() ![]() | CreateSaveOptions(SaveFormat) |
Creates a save options object of a class suitable for the specified save format.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Document doc = new Document(MyDir + "Rendering.docx"); // Use a SaveOptions object to specify the encoding for a document that we will save. HtmlSaveOptions saveOptions = new HtmlSaveOptions(); saveOptions.SaveFormat = SaveFormat.Epub; saveOptions.Encoding = Encoding.UTF8; // By default, an output .epub document will have all its contents in one HTML part. // A split criterion allows us to segment the document into several HTML parts. // We will set the criteria to split the document into heading paragraphs. // This is useful for readers who cannot read HTML files more significant than a specific size. saveOptions.DocumentSplitCriteria = DocumentSplitCriteria.HeadingParagraph; // Specify that we want to export document properties. saveOptions.ExportDocumentProperties = true; doc.Save(ArtifactsDir + "HtmlSaveOptions.Doc2EpubSaveOptions.epub", saveOptions);