Update Pdf.php

Fixing temporary file unlink when header or footer html is an URL.