Adds a button pdf generation to the page for task pdf generation (get data from current url, format json)