Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
amandeep_dhak
Contributor II
Contributor II

Qlik Export to PDF with custom document size

Hi Team

 

I have created a button which allows the visualisation to be exported into a PDF in a Qlik Sense SaaS Mashup. I believe I need to use the exportPdf method. I have been following the example on the Qlik documentation page. I want the visualisation to download into a PDF with a custom size. I have tried customising the PDF using the "documentSize" property in the settings and I receive an error when the button is clicked. However, when I use pre defined sizes such as 'a4', the visualisation exports to PDF. I understand the "documentSize" property takes a object with height and width.

 

Any advice would be appreciated.

 

Thanks

Amandeep

 

 

Labels (2)
1 Reply
alex_colombo
Employee
Employee

Hi @amandeep_dhak could you please post the error and websocket messages where you see EcportPDF method?
By the way, I'd suggest instead to use the new Reports API available for Qlik SaaS.