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.
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.