dynamically generating pdf files from database queries ... takes a bit of time to get the hang of it.