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