使用pdfmake将文本固定到pdf的最后一页底部
Fix text to bottom of last page in pdf using pdfmake
对于一个项目,我正在使用javascript中的pdfmake动态提供报价和发票pdf。我想将包含签名字段的最后一个文本块附加到最后一页的底部。
我的pdf文档定义是这样构建的:
return {
content: [
getOfferLogo(), //Get the logo or empty string
getHeading(), //get the customer and business data (adress etc)
//the above is always the same
getText(), //get the textblock, created by user and always different
getSpecifics(), //get a table of payment specifications
getSignature() //get last textblock contaning signature fields etc, always the same
],
styles: {
subheader: {
fontSize: 15,
bold: true,
alignment: 'center'
}
},
defaultStyle: {
columnGap: 20,
fontSize: 12
}
};
如何将调用getSignature()得到的最后一个文本块附加到pdf最后一页的底部?
var docDefinition = {
content: content,
footer: function(currentPage, pageCount) {
if (currentPage == pageCount)
return "Your footer goes here";
},
}
相关文章:
- 表追加而不附加最后一个元素
- 如何使用javascript或html下载PDF格式的填写表单
- Amd,希望确保某个东西总是最后执行
- 如何将PDF作为二进制文件传递到window.open()
- 键入最后一位数字后自动提交
- 无法在Ionic select中预先选择最后一个选项
- 动态插入的表:JQuery未检测到最后一行
- javascript.点击显示嵌入的pdf
- 为什么画布形状只在3个画布中的最后一个画布上渲染
- Javascript/Jquery Blob not showing Chrome PDF
- 在提交时打开thankyou.html+下载PDF
- 生成pdf或其他非html文件时的错误处理
- how to convert html <div> to pdf
- Jquery append oly获取循环Rails中的最后一个elemen
- 使用Booklet Jquery插件,我如何验证最后一页是否显示
- 如何创建更好的方式来维护基于我的代码访问的最后一个页面
- dataTables-如何自定义分页类型以显示最后一个页码后面的省略号,
- 多维关联数组的最后一个索引
- 将画布转换为pdf:黑色背景
- 使用pdfmake将文本固定到pdf的最后一页底部