Forum Discussion
stesch79
Apr 20, 2020Iron Contributor
"Save as" in embedded PDF behaviour is wrong
Hi all
I have noticed that if you click "Save as" in an embedded PDF, the browser tries to save the whole website (HTML) instead of the PDF itself. Because the same in Chrome browser saves the PDF file. And it is also not expected, as the other function like Rotate and Print are meant for the PDF and not for the whole website.
Try out here: https://www.w3docs.com/tools/code-editor/1077
Just tested with Stable 80, Beta 81 and latest CAN build.
Is this a bug or a feature?
- Hi,
the Save button on the toolbar that Edge provides, correctly saves the file as PDF.
It shouldn't be a bug because websites developers use HTML code to embed PDF in their websites, so it's not pure PDF file but a website that is using other elements to host the PDF. so Edge correctly tries to capture the whole page when you right-click and save.
in this case the save button on the Edge toolbar should be used to save the PDF file only.
https://www.w3docs.com/snippets/html/how-to-embed-pdf-in-html.html- Yes but as I said it's PDF embedded, not directly opening PDF file. a website developer can embed multiple files next to each other with other HTML contents between them. browser can't possible know which one user wants when right-clicking and choosing save.
that option is for the whole page and web pages are written in HTML.