changing pdf to use assets subdomain