Google chrome download pdf instead of opening






















Those days were also before a lot of the media support that came with HTML5. You would see plugins provided by media players like VLC or even Windows Media Player, or websites would embed a media player built in Flash. I found an explanation. For security reasons, most browsers do not allow setting a custom default action for such resources, forcing the user to store it to disk to use it. This instructs the browser to download the file, rather than to open it directly.

There is a Chrome add-on that can override this behavior. The following image is from the Firefox developer tools:. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Why does Chrome sometimes download a PDF instead of opening it? Asked 3 years, 11 months ago. Active 3 years, 11 months ago.

Viewed 71k times. Improve this question. Rgrthat Rgrthat 1, 2 2 gold badges 6 6 silver badges 10 10 bronze badges. Add a comment. Active Oldest Votes. Content-Disposition That's usually because the site sends a Content-Disposition header in the response. Inline handling details When a Content-Disposition is inline or unspecified , the browser will try to open the file in the default embedded viewer.

Type detection The file type can be specified by the server with a Content-Type header. Type handling Upon receiving a file with an inline or unspecified disposition, the browser needs to try to open it within the browser if possible.

A bit of a history lesson To see how PDFs are handled, we can delve a bit into web history. For example, the list of registered types for Flash: Those days were also before a lot of the media support that came with HTML5.

Improve this answer. To have PDF files open in the browser again, repeat these steps and select the Preview in Firefox option or Use other option to choose another program. By default, Opera opens a PDF file in the browser window instead of saving it to the downloads folder. To change how Opera treats PDF files in the browser, follow the steps below.

Tip To have PDF files open in the browser again, repeat these steps and select the Preview in Firefox option or Use other option to choose another program. However, some users may prefer an external app, as it often offers more feature-right experience. Chrome, and other Chromium-based browsers, come with an integrated PDF viewer.

This useful feature allows the user to avoid installing an extra PDF viewer app, providing essential functions, including the ability to print the PDF files. For files opened directly from a web site, there is a save button to download and save them locally. You will need to set some other app to handle PDF files by default.



0コメント

  • 1000 / 1000