Pdf downloads instead of opening






















I've just going to live with this for the time being. I'm reluctant to do any re-installation for fear of borking something in my profile too many extensions and stuff.

I had hoped there was some particular setting or hack that would just get this working, but if not then I can work around it. Choose where you want to search below Search Search the Community. Search the community and support articles Favorites, history, and downloads Microsoft Edge Search Community member. I have set FoxIt Reader to handle pdf files. I have set Edge to not open PDF files.

This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. I have the same question 9. Report abuse. Details required :. Cancel Submit.

Previous Next. Let's work on that. This is due to the default file app that will launch automatically when you click the file. To change the name of a PDF file you want to download, right-click the download link and select Save As. However, downloading a PDF is still possible. By default, Google Chrome opens a PDF file in the browser window instead of saving it to the downloads folder. Step 3: In the Settings window, Choose Cookies and site permissions on the left-hand side, and within that choose PDF documents on the right-hand side.

This is a quick workaround that can be followed to download the pdf file in the Microsoft Edge browser. Now let us see how to open the downloaded file in the PDF viewer of our choice. If you are using HTML5 and i guess now a days everyone uses that , there is an attribute called download. I've had some issues with the suggested solution that creates an a DOM element, and sets the download attribute.

It still displayed a popup warning in some browsers perhaps they got a little stricter by Adding the pdf mime type to the href attribute solved the browser popup warning, but it messed up the file the downloaded file got damaged and couldn't be opened. His code example uses an npm library though. Here's how to do it using js only:. The behaviour should depend on how the browser is set up to handle various MIME types.

I recommend against this as it should be the users choice what will happen when they open a PDF file. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 10 years, 4 months ago. Active 1 month ago. Viewed k times. MikeD 4, 1 1 gold badge 23 23 silver badges 39 39 bronze badges. This is to my knowledge not scriptable behavior.

Most browsers will have their own settings for the behavior of what to do with specific file types on download. This question has also been answered here: stackoverflow.

Add a comment. Active Oldest Votes. With html5, it is possible now. Set a "download" attr in element. Sarim Sarim 2, 2 2 gold badges 17 17 silver badges 20 20 bronze badges. You better go with this solution if it's supported. Here's a way to check if it is if "download" in document. Is there a way one can specify the text for the pdf instead of mentioning file path?

I need to create pdf from a div html but I don't wish to open another window,download should be seemless like in this answer..



0コメント

  • 1000 / 1000