View Issue Details

IDProjectCategoryView StatusLast Update
0027905mantisbtattachmentspublic2021-01-25 17:17
Reporterrogueresearch Assigned To 
Status newResolutionopen 
Product Version2.24.4 
Summary0027905: Support inline preview of PDF attachments

Mantis is currently able to show inline previews of text and image files.

It would be nice if it could do the same for attached PDF files.

Browsers these days are able to show PDF themselves, so perhaps this wouldn't be too difficult a feature?

TagsNo tags attached.


related to 0022583 closedvboctor Open PDFs in the browser rather than downloading them 




2021-01-25 17:17

developer   ~0065034

Just some notes in case someone should start working on this, I have not tried anything myself.

Unlike Video or Audio (inline preview implemented since 2.23.0 0026102 0026095) PDF is not a standard HTML5 element.

At the moment most of the users of mobile browsers (about 75% according would be ruled out, if PDF relies on browser capabilities. (select Usage % of tracked mobile)

Client side rendering via JavaScript might be no good idea, as we would have to deliver a fat JavaScript library and the PDF file itself to the client.