Is there a way to just open a PDF instead download?
Is there a way to just open a PDF instead download?
Mr_LinDowsMac
Posts: 7Questions: 2Answers: 0
I would like to know if there is a way to override the default behavior of a PDF button (from the extension Buttons) which opens a dialog to download the file, to just open it in a new window. According to pdfmake docs:
// open the PDF in a new window
pdfMake.createPdf(docDefinition).open();
I don't know if there is way to that from datatables.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Not in 1.0.0, but I've just committed a feature for this which will be in 1.0.1 which I plan to release tomorrow. Thanks for the suggestion!
Allan
Thanks for the feedback!
I already downloaded in my project the update of Buttons, however didn't work.
I figure out that I'm using the download generator consolidated in a single file and the link to the 1.0.1 is not there yet :/
That's because I haven't released 1.0.1 yet. I will be doing so later today.
Allan
Try this another, I don't have a real hosting because my site is not published yet and it is currently a development:
https://datatables-bug-mrlindowsmac.c9.io/index.html
I don't understand. What is the link for?
Is part of my current website, with the bug included.
What is the bug?
Mmmm... sorry... I posted in the wrong thread. I'll answer you in the pull request in github