build pdf and url that goes to it