# PdfDocumentOptions

## Content

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

***

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

# Type Alias: PdfDocumentOptions

> **PdfDocumentOptions** = `object`

Provides options for creating a new [PdfDocument](../classes/PdfDocument).

## Properties

### compressionLevel?

> `optional` **compressionLevel**: [`CompressionLevel`](../enumerations/CompressionLevel)

The compression level. The default is "Fastest".

***

### conformanceLevel?

> `optional` **conformanceLevel**: [`PdfAConformanceLevel`](../enumerations/PdfAConformanceLevel)

The PDF/A conformance level. The default is "None".

***

### defaultPageHeight?

> `optional` **defaultPageHeight**: `number`

The default height of new pages, in points.

***

### defaultPageWidth?

> `optional` **defaultPageWidth**: `number`

The default width of new pages, in points.

***

### fontEmbedMode?

> `optional` **fontEmbedMode**: [`FontEmbedMode`](../enumerations/FontEmbedMode)

The font embedding mode. The default is "EmbedSubset".

***

### pdfFontFormat?

> `optional` **pdfFontFormat**: [`PdfFontFormat`](../enumerations/PdfFontFormat)

The format used to represent fonts in the PDF document. The default is "Type0AutoOneByteEncoding".

***

### standardFontEmbedMode?

> `optional` **standardFontEmbedMode**: [`FontEmbedMode`](../enumerations/FontEmbedMode)

The font embedding mode for the 14 standard PDF fonts. The default is "NotEmbed".
