Adding image of the stamp or signature to invoice?

You can do this by base64 encoding the image and then adding it in a custom invoice design.

Check the images page here for an example: http://pdfmake.org/playground.html