Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

PDF downloads when opened in a new tab

When I click on a pdf normally to open it, it previews in Firefox like it's supposed to. However, when I try to open them in a new tab, it automatically downloads it to my computer instead of previewing it. What do I do to keep it from downloading if I want multiple tabs with pdfs open?

When I click on a pdf normally to open it, it previews in Firefox like it's supposed to. However, when I try to open them in a new tab, it automatically downloads it to my computer instead of previewing it. What do I do to keep it from downloading if I want multiple tabs with pdfs open?

All Replies (7)

The PDF issue is due to a Firefox update that automatically set PDFs to open and download.

To fix that, you just need to update your Firefox settings. From the Mozilla Help Page, here are the steps to do that :

PC Users:

  • Bulleted list itemClick the menu button (the three grey bars in the toolbar), or click "Options" in the header menu.
  • Bulleted list itemSelect "Options." In the pictorial menu, it's a gear icon.
  • Bulleted list itemSelect "Applications" from the header tabs.
  • Bulleted list itemFind Portable Document Format (PDF) in the list and click on it to select it.
  • Bulleted list itemClick on the drop-down arrow in the Action column for PDFs and select "Preview in Firefox". That will set your Firefox browser to display the PDF instead of saving or downloading it.

Mac Users:

  • Bulleted list itemClick the menu button (the three grey bars in the toolbar), or click "File" in the header menu.
  • Select "Preferences." In the pictorial menu, it's a gear icon.
  • Select "Applications" from the header tabs.
  • Bulleted list itemFind Portable Document Format (PDF) in the list and click on it to select it.
  • Bulleted list itemClick on the drop-down arrow in the Action column for PDFs and select "Preview in Firefox". That will set your Firefox browser to display the PDF instead of saving or downloading it.

I had already done all that, and it works when I click on a PDF link, but when I try to open a PDF link in a new tab, then it starts downloading.

Try this also see if it's work:

Reset the browser.newtab.url pref.

Go to about:config via your Address Bar Press the button saying you'll be careful Search for browser.newtab.url Right click -> Reset You might also want to check for any prefs Trovi has set. Search for trovi and reset all prefs (Right click -> Reset) You might have to restart Firefox for this to work.

How do you open the PDF file in a new tab?

Previewing in Firefox usually only works if the server sends the file as application/pdf. If the server sends the file otherwise then you get an 'open with' download dialog.

Adib Obaid said

Try this also see if it's work: Reset the browser.newtab.url pref. Go to about:config via your Address Bar Press the button saying you'll be careful Search for browser.newtab.url Right click -> Reset You might also want to check for any prefs Trovi has set. Search for trovi and reset all prefs (Right click -> Reset) You might have to restart Firefox for this to work.

Couldn't find it

cor-el said

How do you open the PDF file in a new tab? Previewing in Firefox usually only works if the server sends the file as application/pdf. If the server sends the file otherwise then you get an 'open with' download dialog.

Iin the past, whenever I would open a PDF link in a new tab, it would open it in the PDF viewer. I don't know if I had a particular add on or something that allowed that before the firefox update, but if that's the case, then I guess I can't do anything after all.

In addition to the above issues:

If a link/button will open a PDF in the same tab with a simple left click, then you should be able to direct it to open in a separate tab using any of the usual methods. But if the server instructs Firefox to download it rather than displaying it "inline" then that is more challenging to handle.

There is an old extension that might work for you, but from the description it seems to affect ALL kinds of requests and not just PDFs, so that might be inconvenient when you're downloading other kinds of files (always have to right-click > Save Link As). Also, it's not compatible with future versions of Firefox:

https://addons.mozilla.org/firefox/addon/inlinedisposition-reloaded/