Fixed resource reference issue to get the pdf