EXPORT PDF
EXPORT PDF
lauromneto
Posts: 129Questions: 0Answers: 0
Is there any way to export 2 datatables in a single pdf with a single button?
This discussion has been closed.
Replies
---- SOLVED ----
No HTML:
<button id="ExportPdf" type="button">Export All</button>
No JS:
$(document).ready(function(){
$('#ExportPdf').click(function(){
var config = {
className:"buttons-pdf buttons-html5",
customize:null,
download:"download",
exportOptions:{},
extension:".pdf",
filename:"",
footer:true,
header:true,
messageBottom:"",
messagetop:"",
namespace:".dt-button-2",
orientation:"portrait",
pageSize:"A4",
title:""
};
Or you can put in action: (......) in the buttons' own extend PDF!