Chrome pdf downloading as html






















Among the many useful things it can do is its ability to open a PDF file. It might seem trivial but there was once a time when good PDF readers were hard to come by. In Chrome, when you click on a link to a PDF file, it loads in the browser and you can read it. Open Chrome and click the more options button at the top right. From the menu, select Settings. The issue is to make the Google Pdf viewer to use a predefined name for the file instead of the default "download. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. After searching around I've come across a few odd solutions involving HTTP headers, but nothing so far has fixed the issue. Additionally, if I open the url for the iframe content as its own tab and then download, it downloads the correct PDF file.

It happens because the pdf file that you pass to the viewer iframe or PDFObject is always cached internally with the same name.

You can solve it add a random number or date and time as the name of the pdf. How are we doing? Please help us improve Stack Overflow. Take our short survey. 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 months ago. 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.



0コメント

  • 1000 / 1000