posted 11 months ago
Hi Guys,
It's my first time posting here and this code is bugging me for a while now. I'm not quite sure where am I getting it wrong but I'm getting a null pointer exception whenever I run it. Everything works just fine except the part where I want to print "page x of y" in my generated PDF. I've seen different approaches all over the internet although I think the best approach would be the 2nd passing as what they call it. (although I'm not quite sure if it is really the best part). anyways here's my code, any help, criticism and code improvements are very welcome. Thank you!