问题
I am facing problem when I am trying to add my website's header and website's footer in my pdf file. I can download the pdf file by using datatables default plugin. But in the pdf file I want to show the header and footer of the website in the pdf file.My code is like:
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
{
"sExtends": "pdf",
"bFooter": true
},
{
"sExtends": "print",
"sInfo": "Please press escape when done"
},
{
"sExtends": "csv",
"sButtonText": "Save to CSV",
"bFooter":false
}
]
}
Please help me. Thanks in advance.
回答1:
I have done this. I added custom header and footer in my PDF by modifying swf file of datatables. I added a header image and footer text. if you still need any help then ping me.
来源:https://stackoverflow.com/questions/15542458/show-website-header-and-footer-in-the-pdf-file-in-datatables