the pdf button is not displayed
the pdf button is not displayed
obsk
Posts: 12Questions: 1Answers: 0
Hi Guys, I have an application that only shows the copy and print buttons, I have all the scripts initialized. How to make it also show the pdf button?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Are you loading the
pdfmake
andvfs_fonts.js
JS?Not sure its well documented but on the download page you can see they are required required:
https://datatables.net/download/index
One of the PDF button examples will show you the link to the files:
https://datatables.net/extensions/buttons/examples/html5/pdfMessage.html
Kevin
yes, thank for your response,apparently loaded. Send snapshot. I'm stuck
Try loading pdfmake.min.js before datatables.buttons.min.js.
thanks, awesome! , one last question, I have a hidden column and when I make the export that does not occupy the entire sheet. What is the cause of that?. Regards
It does not occupy the entire sheet? Do you want it to?
Can you link to a test page showing the issue please.
Allan
previously occupied the entire width of the sheet,now hide a column from the datatable and do not adjust the width.
Which column? If it's the first column, your exportOptions columns array should begin at 0.
Thanks for your response, I hide column 0, because they are keys. now the width does not fit the following columns as shown in the image.
Not sure if the code in this thread works but you might want to give it a try. It uses the
customize
function to set the column widths.Kevin