Just got off work and saw all the comments. I wrote this up a few months ago to make custom cards for a mafia/werewolf type game I've been playing at work (as some guessed). It's 100% client side and uses jsPDF[0]. You can find the (very rough) source on my github[1]. Future plans include better styling and some changes to allow easier clearing of the template. Thanks!
[0]: https://github.com/MrRio/jsPDF
[1]: https://github.com/konamacona/cardproxy