fix pdf template resources url