Might be worth looking at this thread as it might give you some ideas of using the pdfmake node...
pdfmake