Creating function to download pdf. Configured the javascript to direct the download to the main controller. During the creation of function, I have notice a minor problem on the pdf download whereas it throws an error after no data was gathered. I have successfully solve the issue and apply the solution to the ticket owner report. I am still working in this part