added php function to get pdf download link