How do I open a save dialogue when exporting datatable data to a pdf?

Hi ,

I am using grid.exportToPDF() method to export the data from a datatable to pdf file. But, this method is converting the grid data to a pdf file and rendering in the application. But, In my scenario, I would want to launch a save dialogue box to save the pdf file in my machine(similar to grid.exportToExcel()). How do I achieve this ?

Actually it is expected that export call will open save dialogue box

Are you using default ( online ) export service or the local installation ? In which browser issue occurs ?

yes, I am using the default export service. my application runs in node webkit, which uses the chrome browser.

I tried the sample example provided in webix site. http://docs.webix.com/samples/15_datatable/10_export/01_pdf.html

It is also opening the pdf file in browser. Please help me with this.

Yep, I can confirm the issue. The fix will be available in the next few days ( it will be an update for server side code, as client side code works correctly )

Thank you maksim. Please let me know once after this issue is resolved …

Hi maksim,

I have gone through the php code. I just wanted share my observation with you.
if we change the line 370 in gridPdfWrapper.php from $this->cb->Output(‘grid.pdf’, ‘I’); to $this->cb->Output(‘grid.pdf’, ‘D’); , the code is prompting the user with a save dialogue box.