Some changes to support server-only link for download of PDF