AG Studio Launch Week 🚀🚀🚀 28 Sep - 2 Oct 2026 🚀🚀🚀 Join now




Core Features

Advanced Features

Vue Data GridPDF Export

Version 36.2.0
Enterprise

PDF Export creates a paginated PDF representation of grid data without requiring third-party libraries. The export follows the grid's current data state and displayed columns, but it is not a screenshot and does not reproduce every visual feature rendered in the browser.

Reorder columns or apply filtering and sorting in the following example, then export from the context menu or with the Export to PDF button.

Enabling PDF Export Copy Link

Export from the enterprise Context Menu using the PDF Export item, or call the Grid API directly. For module-based builds, register PdfExportModule.

this.gridApi.exportDataAsPdf();

Set suppressPdfExport=true to disable both exportDataAsPdf() and getDataAsPdf().

Default PDF Export Copy Link

The export uses the current column order and visibility, together with the filtered, sorted, and grouped row data. Exported values are produced independently of the rendered grid cells, using Value Getters and, by default, Value Formatters.

By default, regular columns use their current column widths in the grid and the Row Numbers column is sized from its exported content. Columns are proportionally reduced when their combined width exceeds the printable page width. Cells remain on one line unless wrapping is enabled, and table headers repeat when a table continues onto another page.

PDF Export uses the built-in PDF Base 14 fonts with WinAnsi encoding by default. Register static TrueType font families to export Unicode text or use right-to-left text layout.

The table below summarises what is supported and what is not:

AreaSupportedNot Supported
Grid stateDisplayed column order and visibility, sorting, filtering, selected-row export options, grouping, pinned rows, column spansCell Renderer output or custom HTML
LayoutNamed and custom page sizes, margins, orientation, column widths, text wrapping, automatic row height, repeated table headers, page headers and footersAutomatic page size and horizontal pagination
StylingTheme colours, colors, supported rowStyle, cellStyle, and headerStyle properties, PDF-specific style callbacks, text watermarkscellClass, cellClassRules, arbitrary CSS, automatic browser-font discovery
ContentValue Getters, Value Formatters, export value callbacks, title and subtitle, page headers and footers, cover pages, additional content, JPEG and PNG images, external URI hyperlinksSVG, GIF, internal page links, embedded files
TextBuilt-in PDF fonts, embedded static TrueType fonts, Unicode characters covered by registered fonts, OpenType shaping, horizontal Arabic and Hebrew textCFF, variable, WOFF/WOFF2 and collection fonts; vertical writing and bidirectional text across independently styled runs

PDF Export Sections Copy Link

  • Styles: Reuse supported grid styles and apply PDF-specific overrides.
  • Languages: Register TrueType font families and export Unicode or right-to-left text.
  • Extra Content: Add titles, page furniture, cover pages, and additional content.
  • Customising Content: Customise exported cell, row-group, header, and group-header values.
  • Images: Embed JPEG and PNG images in grid cells, page headers, and page footers.
  • Watermarks: Add translucent status text across selected pages.
  • Rows: Select rows and configure filtered, sorted, and pinned-row export.
  • Columns: Choose columns, headers, groups, Row Numbers, and widths.
  • Hyperlinks: Add external URI links to grid cells and custom content.
  • Master Detail: Include a PDF representation of detail data below master rows.
  • Page Setup: Configure page size, orientation, margins, and repeated table headers.
  • API Reference: PDF export methods, grid options, interfaces, and types.