show website header and footer in the pdf file in datatables

删除回忆录丶 提交于 2019-12-12 02:22:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!