Built initial pdf download via ajax