---
product: "AG Grid"
title: "PDF Export API Reference"
description: "This page documents the PDF Export API and interfaces."
enterprise: true
framework: vue
version: "36.3.0"
related:
    - title: "Styles"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-styles/"
    - title: "Languages"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-languages/"
    - title: "Extra Content"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-extra-content/"
    - title: "Customising Content"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-customising-content/"
    - title: "Images"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-images/"
    - title: "Watermarks"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-watermarks/"
    - title: "Rows"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-rows/"
    - title: "Columns"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-columns/"
    - title: "Hyperlinks"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-hyperlinks/"
    - title: "Master Detail"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-master-detail/"
    - title: "Page Setup"
      url: "https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-page-setup/"
llms: "https://www.ag-grid.com/archive/36.3.0/llms.txt"
---

# PDF Export API Reference

This page documents the PDF Export API and interfaces.

### Grid Properties

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `defaultPdfExportParams` | [`PdfExportParams`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/pdf-export-api/#pdfexportparams) |  |  | A default configuration object used to export to PDF. [Module](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/modules/): `PdfExportModule`. |
| `suppressPdfExport` | `boolean` |  | `false` | Prevents the user from exporting the grid to PDF. |

### API Methods

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `exportDataAsPdf` | `Function` |  |  | Downloads a PDF export of the grid's data. [Module](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/modules/): `PdfExportModule`. |
| `getDataAsPdf` | `Function` |  |  | Similar to `exportDataAsPdf`, except instead of downloading a file, it will return a [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) to be processed by the user. [Module](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/modules/): `PdfExportModule`. |

## Interfaces

### PdfCell

Properties available on the `PdfCell` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `data` | `PdfCellData` | Yes |  | The data that will be added to the cell. |
| `mergeAcross` | `number` |  | `0` | The number of cells to span across (1 means span 2 columns). |
| `style` | `PdfCellStyle` |  |  | Optional styling for the cell. |

### PdfCellData

Properties available on the `PdfCellData` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `string \| null` | Yes |  | The value of the cell. |
| `hyperlink` | `string` |  |  | External URI opened when the exported cell text is selected. |
| `image` | `PdfImage` |  |  | Image rendered alongside the cell value. |

### PdfCellHyperlinkCallbackParams

Properties available on the `PdfCellHyperlinkCallbackParams&lt;TData = any, TContext = any&gt;` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `string` |  |  | The final text exported for the cell. |
| `accumulatedRowIndex` | `number` |  |  | The 1-based index of the current exported row. |
| `node` | [`IRowNode`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/row-object/) |  |  | The row node for the exported cell. |
| `column` | [`Column`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/column-object/) |  |  | The current column. |
| `api` | [`GridApi`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/grid-api/) |  |  | The grid api. |
| `context` | [`TContext`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/typescript-generics/#context-tcontext) |  |  | Application context as set on `gridOptions.context`. |

### PdfCellStyle

Properties available on the `PdfCellStyle` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `backgroundColor` | `string` |  |  | Background colour. |
| `borderColor` | `string` |  |  | Border colour. |
| `borderWidth` | `number` |  |  | Border width in points. Defaults to 1 when `borderColor` is set, otherwise 0. |
| `padding` | `number \| PdfMargin` |  |  | Padding inside the cell in points. A number applies to all sides. |
| `alignment` | `PdfTextAlignment` |  |  | Horizontal alignment for the cell text. |
| `wrapText` | `boolean` |  | `false` | Whether text should wrap onto multiple lines. Wrapped content increases the row height as required. |
| `preserveLineBreaks` | `boolean` |  | `true when wrapText is true, otherwise false` | Whether explicit line breaks should be preserved. |
| `preserveSpaces` | `boolean` |  | `false` | Whether repeated, leading and trailing spaces should be preserved when text wraps. |
| `maxLines` | `number` |  |  | Maximum number of rendered text lines. |
| `overflow` | `PdfTextOverflow` |  | `'ellipsis'` | How text exceeding the available width, height or line limit is indicated. |
| `fontSize` | `number` |  |  | Font size in points. |
| `fontFamily` | `PdfFontFamily` |  |  | Font family. |
| `fontWeight` | `PdfFontWeight` |  |  | Font weight. When omitted, the weight from the resolved font family is preserved. |
| `fontStyle` | `PdfFontStyle` |  | `'normal'` | Font style. |
| `direction` | `PdfTextDirection` |  |  | Text direction. `auto` uses the first strong directional character. When omitted, the export-level direction is used. Text direction does not change exported column order. |
| `language` | `string` |  |  | BCP 47 language tag used when selecting language-specific OpenType features. When omitted, the export-level language is used. |
| `color` | `string` |  |  | Text colour. |
| `lineHeight` | `number` |  |  | Distance between text baselines in points. Defaults to the natural line height from the resolved font metrics, with a minimum of `fontSize`. |

### PdfCellStyleCallbackParams

Properties available on the `PdfCellStyleCallbackParams&lt;TData = any, TContext = any&gt;` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `type` | `'cell' \| 'rowgroup'` |  |  | The exported element type currently being styled. |
| `node` | [`IRowNode \| null`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/row-object/) |  |  | The row node for the exported cell. |
| `column` | [`Column`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/column-object/) |  |  | The current column. |
| `accumulatedRowIndex` | `number` |  |  | 1-based index of the current exported row. |
| `value` | `any` |  |  | The current value for the exported element. |
| `api` | [`GridApi`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/grid-api/) |  |  | The grid api. |
| `context` | [`TContext`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/typescript-generics/#context-tcontext) |  |  | Application context as set on `gridOptions.context`. |

### PdfColors

Properties available on the `PdfColors` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `backgroundColor` | `string` |  | `theme backgroundColor` | Background colour for the PDF page. |
| `dataBackgroundColor` | `string` |  | `theme dataBackgroundColor` | Background colour for body rows. |
| `oddRowBackgroundColor` | `string` |  | `theme oddRowBackgroundColor` | Alternate background colour for odd body rows. |
| `foregroundColor` | `string` |  | `theme foregroundColor` | Text colour for body rows. |
| `headerBackgroundColor` | `string` |  | `theme headerBackgroundColor` | Background colour for header rows. |
| `headerTextColor` | `string` |  | `theme headerTextColor` | Text colour for header rows. |
| `borderColor` | `string` |  | `theme borderColor` | Border colour for cell outlines. |

### PdfDocumentHeadingStyle

Properties available on the `PdfDocumentHeadingStyle` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `margin` | `number \| PdfMargin` |  |  | Margin around the document heading in points. A number applies to all sides. |
| `backgroundColor` | `string` |  |  | Background colour. |
| `borderColor` | `string` |  |  | Border colour. |
| `borderWidth` | `number` |  |  | Border width in points. Defaults to 1 when `borderColor` is set, otherwise 0. |
| `padding` | `number \| PdfMargin` |  |  | Padding inside the cell in points. A number applies to all sides. |
| `alignment` | `PdfTextAlignment` |  |  | Horizontal alignment for the cell text. |
| `wrapText` | `boolean` |  | `false` | Whether text should wrap onto multiple lines. Wrapped content increases the row height as required. |
| `preserveLineBreaks` | `boolean` |  | `true when wrapText is true, otherwise false` | Whether explicit line breaks should be preserved. |
| `preserveSpaces` | `boolean` |  | `false` | Whether repeated, leading and trailing spaces should be preserved when text wraps. |
| `maxLines` | `number` |  |  | Maximum number of rendered text lines. |
| `overflow` | `PdfTextOverflow` |  | `'ellipsis'` | How text exceeding the available width, height or line limit is indicated. |
| `fontSize` | `number` |  |  | Font size in points. |
| `fontFamily` | `PdfFontFamily` |  |  | Font family. |
| `fontWeight` | `PdfFontWeight` |  |  | Font weight. When omitted, the weight from the resolved font family is preserved. |
| `fontStyle` | `PdfFontStyle` |  | `'normal'` | Font style. |
| `direction` | `PdfTextDirection` |  |  | Text direction. `auto` uses the first strong directional character. When omitted, the export-level direction is used. Text direction does not change exported column order. |
| `language` | `string` |  |  | BCP 47 language tag used when selecting language-specific OpenType features. When omitted, the export-level language is used. |
| `color` | `string` |  |  | Text colour. |
| `lineHeight` | `number` |  |  | Distance between text baselines in points. Defaults to the natural line height from the resolved font metrics, with a minimum of `fontSize`. |

### PdfExportParams

Properties available on the `PdfExportParams` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `fonts` | `PdfFontFamilyDefinition[]` |  | `[]` | Custom static TrueType font families available to this export. Font data must be loaded by the application before export. |
| `language` | `string` |  |  | BCP 47 language tag used for text shaping and PDF accessibility metadata. This can be overridden by individual cell styles. |
| `direction` | `PdfTextDirection` |  | `grid enableRtl setting` | Default text direction for the PDF document. When omitted, this inherits the grid's `enableRtl` setting. Individual `PdfCellStyle.direction` values take precedence for text. An export-level value of `rtl` also renders table columns in right-to-left order. |
| `documentTitle` | `string` |  |  | The document title stored in the PDF metadata. When set, a visible title is rendered above the exported table. |
| `documentTitleStyle` | `PdfDocumentHeadingStyle` |  |  | Styling for the visible document title. |
| `documentSubtitle` | `string` |  |  | A visible subtitle rendered below the document title. |
| `documentSubtitleStyle` | `PdfDocumentHeadingStyle` |  |  | Styling for the visible document subtitle. |
| `coverPage` | `boolean` |  | `false` | Set to `true` to render the document title and subtitle on a separate first page. The exported grid begins on the following page. |
| `headerFooterConfig` | `PdfHeaderFooterConfig` |  |  | Page header and footer content. |
| `watermark` | `PdfWatermark` |  |  | A text watermark rendered across the content of selected pages. |
| `colors` | `PdfColors` |  |  | Override PDF colours. Any missing values fall back to the current theme. |
| `skipGridStyles` | `boolean` |  | `false` | Set to `true` to skip applying grid style definitions and callbacks (`rowStyle`, `getRowStyle`, `colDef.cellStyle`, `colDef.headerStyle`). Use this when you want to rely only on `colors` and theme defaults. |
| `processStyleCallback` | `Function` |  |  | Callback that allows overriding styles for rows, cells, row groups, headers and group headers during PDF export. Returned styles are merged after resolved grid styles and take precedence. |
| `processCellHyperlinkCallback` | `Function` |  |  | Callback that provides an external URI for an exported body cell. The returned URI is added to the PDF as a clickable link annotation. |
| `addImageToCell` | `Function` |  |  | Callback that provides an image for an exported body cell. Return an optional value to replace the exported cell text. |
| `page` | `PdfPageSetup` |  | `{ size: 'A4', orientation: 'landscape', margin: 36 }` | Page size, orientation and margins. |
| `defaultCellStyle` | `PdfCellStyle` |  | `{ fontFamily: 'Helvetica', fontSize: 10, padding: 4 }` | Default style applied to every body cell, including custom content rows. Grid styles, row and cell styles, and `processStyleCallback` results override these values. When no style is provided, body cells use `Helvetica` at 10 points. |
| `defaultHeaderStyle` | `PdfCellStyle` |  | `{ fontFamily: 'Helvetica-Bold', fontSize: 11, padding: 4 }` | Default style applied to header and group-header cells. Each unset property inherits from `defaultCellStyle`; values set here take precedence. If neither style sets `fontSize`, headers use 11 points. If no font weight is inherited or set, headers use the bold variant of the resolved body font. |
| `columnWidth` | `PdfColumnWidth \| PdfColumnWidthCallback` |  | `'grid'` | Controls exported column widths. Use `auto` to size from exported content, `grid` to use the current column width in the grid, a number for a width in points, or a callback for per-column control. Widths are proportionally reduced when their total exceeds the printable page width. |
| `rowGroupIndentSize` | `number` |  | `12` | Horizontal indentation in points for each row-group level. |
| `rowHeight` | `number` |  | `calculated from font size and padding` | Height of body rows in points. If omitted, calculated from font size and padding. |
| `headerRowHeight` | `number` |  | `calculated from header font size and padding` | Height of header rows in points. If omitted, calculated from header font size and padding. |
| `repeatHeader` | `boolean` |  | `true` | Set to `false` to avoid repeating header rows on each page. |
| `drawCellBorders` | `boolean` |  | `true` | Set to `false` to skip drawing cell borders. |
| `prependContent` | `PdfCustomContent` |  |  | Content to put at the top of the exported sheet. |
| `appendContent` | `PdfCustomContent` |  |  | Content to put at the bottom of the exported sheet. |
| `getCustomContentBelowRow` | `Function` |  |  | A callback function to return content to be inserted below a row in the export. |
| `exportRowNumbers` | `boolean` |  | `false` | Set to `true` to allow the contents of the Row Numbers column to be exported. |
| `fileName` | `string \| ExportFileNameGetter` |  | `'export.pdf'` | String to use as the file name or a function that returns a string. |
| `mimeType` | `string` |  | `'application/pdf'` | The mimeType of the PDF file. |
| `allColumns` | `boolean` |  | `false` | If `true`, all columns will be exported in the order they appear in the columnDefs. When `false` only the columns currently being displayed will be exported. |
| `columnKeys` | `(string \| Column)[]` |  |  | Provide a list (an array) of column keys or Column objects if you want to export specific columns. |
| `rowPositions` | `RowPosition[]` |  |  | Row node positions. |
| `exportedRows` | `'all' \| 'filteredAndSorted'` |  | `'filteredAndSorted'` | Determines whether rows are exported before being filtered and sorted. |
| `onlySelected` | `boolean` |  | `false` | Export only selected rows. |
| `onlySelectedAllPages` | `boolean` |  | `false` | Only export selected rows including other pages (only makes sense when using pagination). |
| `skipColumnGroupHeaders` | `boolean` |  | `false` | Set to `true` to exclude header column groups. |
| `skipColumnHeaders` | `boolean` |  | `false` | Set to `true` if you don't want to export column headers. |
| `skipRowGroups` | `boolean` |  | `false` | Set to `true` to skip row group headers if grouping rows. Only relevant when grouping rows. |
| `skipPinnedTop` | `boolean` |  | `false` | Set to `true` to suppress exporting rows pinned to the top of the grid. |
| `skipPinnedBottom` | `boolean` |  | `false` | Set to `true` to suppress exporting rows pinned to the bottom of the grid. |
| `skipPinnedRowDuplicates` | `boolean` |  | `false` | Set to `true` to omit the body copies of manually pinned rows. The rows in the pinned sections are still exported unless `skipPinnedTop` or `skipPinnedBottom` is enabled. |
| `valueFrom` | `CellValueResolveFrom` |  | `'data'` | The base source to use for getting cell values. `'data'`: values from the underlying row data `'batch'`: pending batch edit values (falls back to data if not in batch mode) `'edit'`: current editor values including live typing |
| `transformValues` | `boolean` |  | `true` | Apply the Show Values As transform (e.g. a percentage of a total) on top of the `valueFrom` base, so the export carries the displayed value for columns with an active mode. Columns without one export the base value. |
| `shouldRowBeSkipped` | `Function` |  |  | A callback function that will be invoked once per row in the grid. Return true to omit the row from the export. |
| `processCellCallback` | `Function` |  |  | A callback function invoked once per cell in the grid. Return a string value to be displayed in the export. For example this is useful for formatting date values. |
| `processHeaderCallback` | `Function` |  |  | A callback function invoked once per column. Return a string to be displayed in the column header. |
| `processGroupHeaderCallback` | `Function` |  |  | A callback function invoked once per column group. Return a `string` to be displayed in the column group header. Note that column groups are exported by default, this option will not work with `skipColumnGroupHeaders=true`. |
| `processRowGroupCallback` | `Function` |  |  | A callback function invoked once per row group. Return a `string` to be displayed in the group cell. |

### PdfFontFace

Properties available on the `PdfFontFace` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `data` | `ArrayBuffer \| Uint8Array` | Yes |  | Static TrueType font data. |
| `weight` | `PdfFontWeight` |  | `400` | Weight represented by this face. |
| `style` | `PdfFontStyle` |  | `'normal'` | Style represented by this face. |

### PdfFontFamilyDefinition

Properties available on the `PdfFontFamilyDefinition` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `family` | `string` | Yes |  | Family name used by PDF styles. |
| `faces` | `PdfFontFace[]` | Yes |  | Font faces available for this family. |

### PdfGroupHeaderStyleCallbackParams

Properties available on the `PdfGroupHeaderStyleCallbackParams&lt;TData = any, TContext = any&gt;` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `type` | `'groupheader'` |  |  | The exported element type currently being styled. |
| `column` | [`ColumnGroup`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/column-object-group/) |  |  | The current column group. |
| `accumulatedRowIndex` | `number` |  |  | 1-based index of the current exported row. |
| `value` | `any` |  |  | The current value for the exported element. |
| `api` | [`GridApi`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/grid-api/) |  |  | The grid api. |
| `context` | [`TContext`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/typescript-generics/#context-tcontext) |  |  | Application context as set on `gridOptions.context`. |

### PdfHeaderFooter

Properties available on the `PdfHeaderFooter` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `header` | `PdfHeaderFooterContent[]` |  |  | Up to three header entries positioned left, centre, and right. |
| `footer` | `PdfHeaderFooterContent[]` |  |  | Up to three footer entries positioned left, centre, and right. |

### PdfHeaderFooterConfig

Properties available on the `PdfHeaderFooterConfig` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `all` | `PdfHeaderFooter` |  |  | Header and footer configuration applied to every page unless overridden. |
| `first` | `PdfHeaderFooter` |  |  | Header and footer configuration applied to the first page. |
| `even` | `PdfHeaderFooter` |  |  | Header and footer configuration applied to even-numbered pages. |

### PdfHeaderFooterImageContent

Properties available on the `PdfHeaderFooterImageContent` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `string` |  |  | Header or footer text. Supports `&[Page]`, `&[Pages]`, `&[Date]`, and `&[Time]` placeholders. |
| `image` | `PdfImage` |  |  | Image rendered alongside the text. |
| `position` | `'Left' \| 'Center' \| 'Right'` |  |  | Position of the content within the printable page width. When omitted, array entries default to left, centre, and right in order. |
| `style` | `PdfTextStyle` |  |  | Text styling for this entry. |

### PdfHeaderFooterTextContent

Properties available on the `PdfHeaderFooterTextContent` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `string` |  |  | Header or footer text. Supports `&[Page]`, `&[Pages]`, `&[Date]`, and `&[Time]` placeholders. |
| `image` | `PdfImage` |  |  | Image rendered alongside the text. |
| `position` | `'Left' \| 'Center' \| 'Right'` |  |  | Position of the content within the printable page width. When omitted, array entries default to left, centre, and right in order. |
| `style` | `PdfTextStyle` |  |  | Text styling for this entry. |

### PdfHeaderStyleCallbackParams

Properties available on the `PdfHeaderStyleCallbackParams&lt;TData = any, TContext = any&gt;` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `type` | `'header'` |  |  | The exported element type currently being styled. |
| `column` | [`Column`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/column-object/) |  |  | The current column. |
| `accumulatedRowIndex` | `number` |  |  | 1-based index of the current exported row. |
| `value` | `any` |  |  | The current value for the exported element. |
| `api` | [`GridApi`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/grid-api/) |  |  | The grid api. |
| `context` | [`TContext`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/typescript-generics/#context-tcontext) |  |  | Application context as set on `gridOptions.context`. |

### PdfMargin

Properties available on the `PdfMargin` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `top` | `number` |  |  | Top margin in points. |
| `right` | `number` |  |  | Right margin in points. |
| `bottom` | `number` |  |  | Bottom margin in points. |
| `left` | `number` |  |  | Left margin in points. |

### PdfPageSetup

Properties available on the `PdfPageSetup` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `size` | `PdfPageSize` |  | `'A4'` | The size of the PDF page. |
| `orientation` | `PdfPageOrientation` |  | `'landscape'` | Page orientation. |
| `margin` | `number \| PdfMargin` |  | `36` | Page margins in points. A number applies to all sides. |

### PdfRowStyleCallbackParams

Properties available on the `PdfRowStyleCallbackParams&lt;TData = any, TContext = any&gt;` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `type` | `'row'` |  |  | The exported element type currently being styled. |
| `node` | [`IRowNode \| null`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/row-object/) |  |  | The row node for the exported row. |
| `accumulatedRowIndex` | `number` |  |  | 1-based index of the current exported row. |
| `value` | `any` |  |  | The current value for the exported element. |
| `api` | [`GridApi`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/grid-api/) |  |  | The grid api. |
| `context` | [`TContext`](https://www.ag-grid.com/archive/36.3.0/vue-data-grid/typescript-generics/#context-tcontext) |  |  | Application context as set on `gridOptions.context`. |

### PdfTextStyle

Properties available on the `PdfTextStyle` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `fontSize` | `number` |  |  | Font size in points. |
| `fontFamily` | `PdfFontFamily` |  |  | Font family. |
| `fontWeight` | `PdfFontWeight` |  |  | Font weight. When omitted, the weight from the resolved font family is preserved. |
| `fontStyle` | `PdfFontStyle` |  | `'normal'` | Font style. |
| `direction` | `PdfTextDirection` |  |  | Text direction. `auto` uses the first strong directional character. When omitted, the export-level direction is used. Text direction does not change exported column order. |
| `language` | `string` |  |  | BCP 47 language tag used when selecting language-specific OpenType features. When omitted, the export-level language is used. |
| `color` | `string` |  |  | Text colour. |
| `lineHeight` | `number` |  |  | Distance between text baselines in points. Defaults to the natural line height from the resolved font metrics, with a minimum of `fontSize`. |

### PdfWatermark

Properties available on the `PdfWatermark` interface.

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `text` | `string` |  |  | Text displayed diagonally across the exported page content. |
| `opacity` | `number` |  | `0.12` | Text opacity from `0` (transparent) to `1` (opaque). |
| `rotation` | `number` |  | `-45` | Rotation in degrees. |
| `pages` | `PdfWatermarkPageSelection` |  | `'all'` | Pages on which the watermark is rendered. |
| `style` | `PdfTextStyle` |  |  | Text styling for the watermark. |
