New to Kendo UI for Vue? Start a free 30-day trial

Fitting Content to Paper Size

The GridPDFExport component enables you to scale the content of the native Vue Grid by Kendo UI when you export it to PDF.

By default, the paper size of the exported document is determined by the size of the Grid on the screen. However, you can define a specific paper size that will apply to the whole document. As a result, the content is scaled to fit the specified paper size. It is possible to override the automatic scale factor—for example, to make room for additional page elements.

The following example demonstrates how the Grid fits its content to the available paper size by:

  • Adjusting the column widths to fill the page.
  • Adapting the number of rows for each page and places page breaks where appropriate.
  • Omitting the toolbar and pager.
View Source
Change Theme:

In this article

Not finding the help you need?