Use pdf_url(), much better than constructing URLs by hand