All docs
V21.2
22.1
21.2
21.1
The page you are viewing does not exist in version 21.1. This link will take you to the root page.
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

PdfExportGanttProps

Properties that you can pass as a parameter to the exportGantt(options) method from the pdfExporter module.

import { PdfExportGanttProps } from "devextreme/pdf_exporter"

component

A Gantt instance. This setting is required.

Type:

Gantt

Default Value: undefined

createDocumentMethod

A function that creates a PDF document.

Type:

Function

Function parameters:
options:

Object

PDF document settings.

Return Value:

Object

The PDF document.

dateRange

Specifies the date range for which to export tasks.

Type:

String

|

Object

Accepted Values: 'all' | 'visible'

exportMode

Specifies which part of the component to export (chart area, tree list area, or the entire component).

Type:

String

Accepted Values: 'all' | 'treeList' | 'chart'

fileName

Specifies the file name.

Type:

String

Default Value: undefined

format

Specifies the document size.

Type:

String

|

Object

Default Value: undefined

jsPDFDocument

A jsPDF instance. This setting is required.

Type:

Object

Default Value: undefined

landscape

Specifies whether to use horizontal orientation for the document.

Type:

Boolean

Default Value: true

margins

Specifies the outer indents of the exported area.

Type:

Object

Default Value: undefined