Forum Discussion

stesch79's avatar
stesch79
Iron Contributor
Apr 20, 2020

"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
    • stesch79's avatar
      stesch79
      Iron Contributor

      HotCakeX  Sure, the save button works. But it is not intuitively because the normal user expect to get the PDF saved. As I mentioned this is also the case in Chrome browser.

      • HotCakeX's avatar
        HotCakeX
        MVP
        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.

Resources