# SaveSvgOptions

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / SaveSvgOptions

# Type Alias: SaveSvgOptions

> **SaveSvgOptions** = `object`

Provides settings for saving [SvgDocument](../classes/SvgDocument) to a byte array.

## Properties

### byteOrderMark?

> `optional` **byteOrderMark**: `boolean`

Indicates whether to write the sequence of bytes that specifies the encoding used.

***

### encoding?

> `optional` **encoding**: [`XmlEncoding`](../enumerations/XmlEncoding)

The type of text encoding to use. The default is "UTF8".

***

### escapeNonAscii?

> `optional` **escapeNonAscii**: `boolean`

Indicates whether to escape all non-ASCII characters.

***

### indent?

> `optional` **indent**: `boolean`

Indicates whether to indent elements. The default is true.

***

### newLineOnAttributes?

> `optional` **newLineOnAttributes**: `boolean`

Indicates whether to write attributes on a new line.

***

### omitXmlDeclaration?

> `optional` **omitXmlDeclaration**: `boolean`

Indicates whether to omit an XML declaration.

***

### skipComments?

> `optional` **skipComments**: `boolean`

Indicates whether to skip comments in SVG.

***

### useWindowsNewLine?

> `optional` **useWindowsNewLine**: `boolean`

Indicates whether to use CR LF sequence for new lines.
