Resolve errors in pdfController