在数据表中的pdf文件中显示网站页眉和页脚 [英] show website header and footer in the pdf file in datatables

查看:141
本文介绍了在数据表中的pdf文件中显示网站页眉和页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图将我的网站的标题和网站的页脚添加到我的pdf文件中时,我遇到了问题。我可以使用datatables默认插件下载pdf文件。但是在pdf文件中,我想在pdf文件中显示网站的页眉和页脚。我的代码如下:

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                     
}
]
}

请帮助我。感谢提前。

推荐答案

我已经做到了。我通过修改数据表的swf文件在我的PDF中添加了自定义页眉和页脚。我添加了一个标题图像和页脚文本。如果您仍然需要任何帮助,请ping我。

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.

这篇关于在数据表中的pdf文件中显示网站页眉和页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆