fixed definition of the pdfService bean and its usage in pdfController