Better PDF handling, now possibility to download the PDF from the UI
bugfix pdf upload