Render PDFs Inline

#3.87 / 15 rate

Render PDFs Inline

5,000 users

2016-04-08

https://semenkovich.co...

Extension Information

5 star
59%
4 star
15%
3 star
0%
2 star
7%
1 star
19%

Supported Languages

Permissions

Description

Force PDFs to display inline instead of downloading. By Nick Semenkovich <[email protected]>

Force PDFs to render inline instead of downloading. By Nick Semenkovich

Annoyed by PDFs that save and download instead of opening?

This extension forces PDFs to render inline instead of downloading (by overwriting the "Content-disposition: attachment" header).

This extension works using the webRequest API -- and it's a bit slower than the alternative extension. If you're using the Beta or Dev versions of Chrome, my alternative extension uses the Declarative Web Request API -- which is faster.

Features:
- Only rewrites content that's in a main window (main_frame)
- Rewrites all responses with "Content-type: application/pdf"
- Rewrites responses with "Content-type: application/octet-stream" with a filename=*.pdf


WARNING: This may have security risks by overriding the attachment header. Use at your own risk.


======== CODE ========
Please contribute! https://github.com/semenko/chrome-force-pdf-inline

Copyright 2014-2015, Nick Semenkovich

Released under the MIT License. See LICENSE for details.

Reviews

porg
porg

Good feature idea! Sadly a of 2024-03-21 the extension in it lates released version 2016.4.7 is not working anymore in the current Chrome 122.0.6261.129. Tried it on https://www.bmf.gv.at/services/publikationen/das-steuerbuch.html where the PDFs use "Content-Disposition: attachment" and enforcing PDF inline display fails, instead the PDFs just trigger a download.

Amir
Amir

All you need to not to save a PDF but to read it!

Hari Tharani
Hari Tharani

not even opening very bad n not useful

Similar extensions

Docs Viewer
Docs Viewer

Muyor

No PDF Download
No PDF Download

Merten Peetz

PDF Forcedownload Blocker
PDF Forcedownload Blocker

brenton.a.milne

Soda PDF Viewer
Soda PDF Viewer

https://sodapdf.com

HTML5 PDF Printing in Chrome
HTML5 PDF Printing in Chrome

Dylan Su

Modify Content-Type
Modify Content-Type

Daniel Calliess

Wiki Researcher
Wiki Researcher

wiki researcher addon

Block Unreachable Scripts
Block Unreachable Scripts

em_te

PDF Viewer
PDF Viewer

stempol.app

Hover Read
Hover Read

Mark Dunne

Render Selection
Render Selection

michaelstratman

Undisposition [Racle fork]
Undisposition [Racle fork]

Racle