我在使用PDFMake时遇到了这个问题,我需要根据当前页面显示的信息放置不同的背景图像。
我一直在寻求帮助,一点都没有运气。 我认为,如果有一种方法可以给后台功能添加标记,那就太好了。
function(currentPage, pageSize){
maybe an argument telling which part of the document is being processed like
if (currentPage.marker === "section3"){ return { image: ...... }}
*/
return {
image: 'data:image/jpg;base64,' + decodedb64headerfull,
width: 620
}
/*
Perhaps if document definitions could be merged, it would help
*/