Create PDF link gives error message Whoops