View Issue Details

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

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.

Relationships

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

Activities

atrol

atrol

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.
https://www.w3.org/TR/2017/REC-html52-20171214/dom.html#embedded-content

At the moment most of the users of mobile browsers (about 75% according caniuse.com) would be ruled out, if PDF relies on browser capabilities.
https://caniuse.com/?search=pdf (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.