Tips and Tricks

Category: Tips and Tricks (11 posts) [RSS]

May 27 2016

How to Open PDF Attachments from the Wiki directly in the browser

Ever wondered how to get PDF attachments to open directly in the browser? Today we're opening the "XWiki Tips and Tricks" series with a guide on how to achieve just that.
Right now, when you want to open PDF attachments from your wiki you'll get the following default behavior:

  • if the PDF file was uploaded by users with no programming rights, then the file is automatically downloaded upon click
  • if the PDF file was uploaded by a user with programming rights (e.g. Admin) then the file is opened directly in browser upon click ...