exportPdf method

This API is reliable and breaking changes are unlikely.


Exports a QVisualization instance to PDF.

Version history

Introduced Qlik Sense September 2018



Type: Object

PDF export settings.


Name Type Description
documentSize String | ObjectMetricSize

Page size of the output PDF. Can be an object with custom size or a string with one of the following document formats:

  • A3
  • A4
  • A5
  • A6
  • A7
orientation String

Ignored if documentSize is an object. Can be:

  • portrait
  • landscape

Default is landscape.

aspectRatio Number

Specifies the aspect ratio. Can be:

  • 0: as specified in objectSize
  • 2: fit to page

Default is JPG.

objectSize ObjectPixelSize

Exported object height and width in pixels. Required when aspectRatio: 0.


A promise of a link to the exported file.


var settings = { documentSize: 'A4', aspectRatio: 2, orientation: "landscape" }

var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d');
  vis.exportPdf(settings).then(function (result) {
    console.log('PDF download link: ', result);

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?