Beaker: Add support for rendering PDFs with PDF.js

Created on 17 Jan 2018  路  8Comments  路  Source: beakerbrowser/beaker

We're not going to support OS-native plugins, so Flash and Adobe's PDF viewer are out, but PDFs are pretty nice so maybe PDF.js can be used.

feature request

All 8 comments

Heads up, I'm going to start looking into this.

@pfrazee Right now it looks like .md files are only formatted over the dat:// and http:// protocols. However they are not formatted over the file:// protocol. Is this intended, or should markdown and pdf files display a "viewer" over the file:// protocol as well?

@webdesserts what makes you say file:// isnt supported by markdown rendering?

@pfrazee Here was when I encountered the issue: https://clips.twitch.tv/SpineyBreakableYakinikuYouWHY?tt_medium=creation

You can see I drag and dropped a file into 0.8 and it was rendered raw.

Ah! Well that's a bug. Give me a few moments, I'll see if I can diagnose it.

Ok fixed. The issue was that the file:// protocol doesn't give a mimetype

@pfrazee ahh, Ok. Thanks! I'll keep this in mind when I work on the pdf detection.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msfeldstein picture msfeldstein  路  3Comments

NicholasGWK picture NicholasGWK  路  4Comments

johanbove picture johanbove  路  3Comments

pmario picture pmario  路  3Comments

aaronshaf picture aaronshaf  路  3Comments