How to call firefox built-in pdf viewer (pdf.js) manually?
up vote
3
down vote
favorite
I have disabled Firefox's native PDF viewer so each PDF link doesn't open automatically and gets downloaded by default. And I like it that way.
But I still want to open some PDFs in the viewer. So the question is: what can I do to call the viewer manually without switching default action every time? Like using some protocol handler similar to viewing sources (view-source:<url>), extension or bookmarklet JS code?
firefox browser pdf bookmarklet
add a comment |
up vote
3
down vote
favorite
I have disabled Firefox's native PDF viewer so each PDF link doesn't open automatically and gets downloaded by default. And I like it that way.
But I still want to open some PDFs in the viewer. So the question is: what can I do to call the viewer manually without switching default action every time? Like using some protocol handler similar to viewing sources (view-source:<url>), extension or bookmarklet JS code?
firefox browser pdf bookmarklet
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have disabled Firefox's native PDF viewer so each PDF link doesn't open automatically and gets downloaded by default. And I like it that way.
But I still want to open some PDFs in the viewer. So the question is: what can I do to call the viewer manually without switching default action every time? Like using some protocol handler similar to viewing sources (view-source:<url>), extension or bookmarklet JS code?
firefox browser pdf bookmarklet
I have disabled Firefox's native PDF viewer so each PDF link doesn't open automatically and gets downloaded by default. And I like it that way.
But I still want to open some PDFs in the viewer. So the question is: what can I do to call the viewer manually without switching default action every time? Like using some protocol handler similar to viewing sources (view-source:<url>), extension or bookmarklet JS code?
firefox browser pdf bookmarklet
firefox browser pdf bookmarklet
edited Dec 20 '16 at 18:17
asked Dec 3 '16 at 19:48
Annarfych
1186
1186
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
In Firefox web browser, go to resource://pdf.js/web/viewer.html
The resource URL scheme will manually call the built-in PDF viewer. For some reason, the 'Open File' button in the viewer is useless in Firefox on Linux; the file selection dialog will not appear. The workaround is to drag and drop PDF file into the built-in viewer.
Open a new window of Firefox web browser.
In the address bar, type
resource://pdf.js/web/viewer.htmland hit Enter key. An empty viewer will load.Open another window of Firefox web browser and visit the page where it contains link to PDF file i.e. google "example adobe .pdf" to find relevant results.
Click on target link once and hold, then move (drag) into the empty viewer and release (drop).
The empty viewer will open the PDF file and the address bar will change from
resource://tohttps://or such relevant URL.
The following screenshot combo illustrates the explained steps.

Drag and drop works for links to PDF file, as well as for local documents. Instead of link, drag the file icon from a File Manager into the empty viewer. The PDF file will open similarly.
Tested working in Firefox 50.1.0 (legacy) and 57+ (Firefox Quantum) on Linux.
1
Thank you, it doesn't look neat but at least it works. Only other suggestion I found is to use "Open in Browser" extension but it just ignores internal viewer for pdfs and tries to download them anyway (albeit showing pngs etc).
– Annarfych
Dec 20 '16 at 18:12
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
In Firefox web browser, go to resource://pdf.js/web/viewer.html
The resource URL scheme will manually call the built-in PDF viewer. For some reason, the 'Open File' button in the viewer is useless in Firefox on Linux; the file selection dialog will not appear. The workaround is to drag and drop PDF file into the built-in viewer.
Open a new window of Firefox web browser.
In the address bar, type
resource://pdf.js/web/viewer.htmland hit Enter key. An empty viewer will load.Open another window of Firefox web browser and visit the page where it contains link to PDF file i.e. google "example adobe .pdf" to find relevant results.
Click on target link once and hold, then move (drag) into the empty viewer and release (drop).
The empty viewer will open the PDF file and the address bar will change from
resource://tohttps://or such relevant URL.
The following screenshot combo illustrates the explained steps.

Drag and drop works for links to PDF file, as well as for local documents. Instead of link, drag the file icon from a File Manager into the empty viewer. The PDF file will open similarly.
Tested working in Firefox 50.1.0 (legacy) and 57+ (Firefox Quantum) on Linux.
1
Thank you, it doesn't look neat but at least it works. Only other suggestion I found is to use "Open in Browser" extension but it just ignores internal viewer for pdfs and tries to download them anyway (albeit showing pngs etc).
– Annarfych
Dec 20 '16 at 18:12
add a comment |
up vote
4
down vote
accepted
In Firefox web browser, go to resource://pdf.js/web/viewer.html
The resource URL scheme will manually call the built-in PDF viewer. For some reason, the 'Open File' button in the viewer is useless in Firefox on Linux; the file selection dialog will not appear. The workaround is to drag and drop PDF file into the built-in viewer.
Open a new window of Firefox web browser.
In the address bar, type
resource://pdf.js/web/viewer.htmland hit Enter key. An empty viewer will load.Open another window of Firefox web browser and visit the page where it contains link to PDF file i.e. google "example adobe .pdf" to find relevant results.
Click on target link once and hold, then move (drag) into the empty viewer and release (drop).
The empty viewer will open the PDF file and the address bar will change from
resource://tohttps://or such relevant URL.
The following screenshot combo illustrates the explained steps.

Drag and drop works for links to PDF file, as well as for local documents. Instead of link, drag the file icon from a File Manager into the empty viewer. The PDF file will open similarly.
Tested working in Firefox 50.1.0 (legacy) and 57+ (Firefox Quantum) on Linux.
1
Thank you, it doesn't look neat but at least it works. Only other suggestion I found is to use "Open in Browser" extension but it just ignores internal viewer for pdfs and tries to download them anyway (albeit showing pngs etc).
– Annarfych
Dec 20 '16 at 18:12
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
In Firefox web browser, go to resource://pdf.js/web/viewer.html
The resource URL scheme will manually call the built-in PDF viewer. For some reason, the 'Open File' button in the viewer is useless in Firefox on Linux; the file selection dialog will not appear. The workaround is to drag and drop PDF file into the built-in viewer.
Open a new window of Firefox web browser.
In the address bar, type
resource://pdf.js/web/viewer.htmland hit Enter key. An empty viewer will load.Open another window of Firefox web browser and visit the page where it contains link to PDF file i.e. google "example adobe .pdf" to find relevant results.
Click on target link once and hold, then move (drag) into the empty viewer and release (drop).
The empty viewer will open the PDF file and the address bar will change from
resource://tohttps://or such relevant URL.
The following screenshot combo illustrates the explained steps.

Drag and drop works for links to PDF file, as well as for local documents. Instead of link, drag the file icon from a File Manager into the empty viewer. The PDF file will open similarly.
Tested working in Firefox 50.1.0 (legacy) and 57+ (Firefox Quantum) on Linux.
In Firefox web browser, go to resource://pdf.js/web/viewer.html
The resource URL scheme will manually call the built-in PDF viewer. For some reason, the 'Open File' button in the viewer is useless in Firefox on Linux; the file selection dialog will not appear. The workaround is to drag and drop PDF file into the built-in viewer.
Open a new window of Firefox web browser.
In the address bar, type
resource://pdf.js/web/viewer.htmland hit Enter key. An empty viewer will load.Open another window of Firefox web browser and visit the page where it contains link to PDF file i.e. google "example adobe .pdf" to find relevant results.
Click on target link once and hold, then move (drag) into the empty viewer and release (drop).
The empty viewer will open the PDF file and the address bar will change from
resource://tohttps://or such relevant URL.
The following screenshot combo illustrates the explained steps.

Drag and drop works for links to PDF file, as well as for local documents. Instead of link, drag the file icon from a File Manager into the empty viewer. The PDF file will open similarly.
Tested working in Firefox 50.1.0 (legacy) and 57+ (Firefox Quantum) on Linux.
edited Dec 1 at 9:06
answered Dec 20 '16 at 9:35
clearkimura
2,2361429
2,2361429
1
Thank you, it doesn't look neat but at least it works. Only other suggestion I found is to use "Open in Browser" extension but it just ignores internal viewer for pdfs and tries to download them anyway (albeit showing pngs etc).
– Annarfych
Dec 20 '16 at 18:12
add a comment |
1
Thank you, it doesn't look neat but at least it works. Only other suggestion I found is to use "Open in Browser" extension but it just ignores internal viewer for pdfs and tries to download them anyway (albeit showing pngs etc).
– Annarfych
Dec 20 '16 at 18:12
1
1
Thank you, it doesn't look neat but at least it works. Only other suggestion I found is to use "Open in Browser" extension but it just ignores internal viewer for pdfs and tries to download them anyway (albeit showing pngs etc).
– Annarfych
Dec 20 '16 at 18:12
Thank you, it doesn't look neat but at least it works. Only other suggestion I found is to use "Open in Browser" extension but it just ignores internal viewer for pdfs and tries to download them anyway (albeit showing pngs etc).
– Annarfych
Dec 20 '16 at 18:12
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1152583%2fhow-to-call-firefox-built-in-pdf-viewer-pdf-js-manually%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown