Overhauled the css for the batch pdf css code, previous version was completely broken. To prevent cached versions of the pdf in batch jobs from being displayed, a random number is generated at the end of the redirect url.