Fix url retrieving in sendPdfTask