"Save as" in embedded PDF behaviour is wrong

%3CLINGO-SUB%20id%3D%22lingo-sub-1321034%22%20slang%3D%22en-US%22%3E%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1321034%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20noticed%20that%20if%20you%20click%20%22Save%20as%22%20in%20an%20embedded%20PDF%2C%20the%20browser%20tries%20to%20save%20the%20whole%20website%20(HTML)%20instead%20of%20the%20PDF%20itself.%20Because%20the%20same%20in%20Chrome%20browser%20saves%20the%20PDF%20file.%20And%20it%20is%20also%20not%20expected%2C%20as%20the%20other%20function%20like%20Rotate%20and%20Print%20are%20meant%20for%20the%20PDF%20and%20not%20for%20the%20whole%20website.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stesch79_0-1587380733438.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F185348iF69D43CB4BBB9370%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22stesch79_0-1587380733438.png%22%20alt%3D%22stesch79_0-1587380733438.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20out%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.w3docs.com%2Ftools%2Fcode-editor%2F1077%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.w3docs.com%2Ftools%2Fcode-editor%2F1077%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20tested%20with%20Stable%2080%2C%20Beta%2081%20and%20latest%20CAN%20build.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20a%20bug%20or%20a%20feature%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1321809%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1321809%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3Ethe%20Save%20button%20on%20the%20toolbar%20that%20Edge%20provides%2C%20correctly%20saves%20the%20file%20as%20PDF.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20shouldn't%20be%20a%20bug%20because%20websites%20developers%20use%20HTML%20code%20to%20embed%20PDF%20in%20their%20websites%2C%20so%20it's%20not%20pure%20PDF%20file%20but%20a%20website%20that%20is%20using%20other%20elements%20to%20host%20the%20PDF.%20so%20Edge%20correctly%20tries%20to%20capture%20the%20whole%20page%20when%20you%20right-click%20and%20save.%3CBR%20%2F%3Ein%20this%20case%20the%20save%20button%20on%20the%20Edge%20toolbar%20should%20be%20used%20to%20save%20the%20PDF%20file%20only.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.w3docs.com%2Fsnippets%2Fhtml%2Fhow-to-embed-pdf-in-html.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.w3docs.com%2Fsnippets%2Fhtml%2Fhow-to-embed-pdf-in-html.html%3C%2FA%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1323664%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1323664%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310193%22%20target%3D%22_blank%22%3E%40HotCakeX%3C%2FA%3E%26nbsp%3B%20Sure%2C%20the%20save%20button%20works.%20But%20it%20is%20not%26nbsp%3Bintuitively%20because%20the%20normal%20user%20expect%20to%20get%20the%20PDF%20saved.%20As%20I%20mentioned%20this%20is%20also%20the%20case%20in%20Chrome%20browser.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1325674%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1325674%22%20slang%3D%22en-US%22%3EYes%20but%20as%20I%20said%20it's%20PDF%20embedded%2C%20not%20directly%20opening%20PDF%20file.%20a%20website%20developer%20can%20embed%20multiple%20files%20next%20to%20each%20other%20with%20other%20HTML%20contents%20between%20them.%20browser%20can't%20possible%20know%20which%20one%20user%20wants%20when%20right-clicking%20and%20choosing%20save.%3CBR%20%2F%3E%3CBR%20%2F%3Ethat%20option%20is%20for%20the%20whole%20page%20and%20web%20pages%20are%20written%20in%20HTML.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1327299%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1327299%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310193%22%20target%3D%22_blank%22%3E%40HotCakeX%3C%2FA%3E%26nbsp%3BBut%20why%20does%20the%20browser%20than%20know%2C%20that%20Print%20and%20Rotate%20is%20only%20for%20the%20embedded%20PDF%20and%20NOT%20for%20the%20whole%20page%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1328001%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1328001%22%20slang%3D%22en-US%22%3EThat's%20obvious%2C%20because%20it's%20the%20whole%20page%20and%20not%20a%20PDF%20file.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1328233%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1328233%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310193%22%20target%3D%22_blank%22%3E%40HotCakeX%3C%2FA%3E%26nbsp%3B%26nbsp%3BNo%2C%20it%20is%20not%20obvious.%26nbsp%3B%26nbsp%3BIf%20I%20click%20to%20Rotate%20only%20the%20PDF%20is%20rotated%20not%20the%20whole%20page%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stesch79_0-1587551821860.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F185852i6D5E82E030E3167F%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22stesch79_0-1587551821860.png%22%20alt%3D%22stesch79_0-1587551821860.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1328282%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1328282%22%20slang%3D%22en-US%22%3EThat's%20what%20should%20happen.%3CBR%20%2F%3EEdge%20doesn't%20have%20page%20rotate%2C%20only%20PDF%20rotate.%3CBR%20%2F%3Ethere%20is%20nothing%20wrong%20with%20that.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1328430%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1328430%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310193%22%20target%3D%22_blank%22%3E%40HotCakeX%3C%2FA%3E%26nbsp%3BBut%20how%20can%20a%20normal%20user%20know%2C%20what%20the%20target%20is%20for%3F%20We%20have%20one%20context%20menu%20but%20multiple%20targets%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2250%25%22%3ESave%20as%3C%2FTD%3E%3CTD%20width%3D%2250%25%22%3Eis%20for%20the%20whole%20page%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2250%25%22%3EPrint%3C%2FTD%3E%3CTD%20width%3D%2250%25%22%3Eis%20for%20the%20PDF%20only%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2250%25%22%3ERotate%20clockwise%3C%2FTD%3E%3CTD%20width%3D%2250%25%22%3Eis%20for%20the%20PDF%20only%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2250%25%22%3ERotate%20counterwise%3C%2FTD%3E%3CTD%20width%3D%2250%25%22%3Eis%20for%20the%20PDF%20only%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20further%20more%2C%20the%20same%20context%20menu%20in%20Chrome%20has%20%22Save%20as%22%20only%20for%20the%20PDF.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20we%20do%20not%20find%20an%20agreement%20on%20that%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20opened%20a%20Support%20Request%20to%20address%20this.%20It%20is%20not%20obvious%20IMO.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1328508%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1328508%22%20slang%3D%22en-US%22%3ERotation%20is%20for%20PDFs%20only.%3CBR%20%2F%3E%3CBR%20%2F%3Ewhen%20you%20right-click%20on%20a%20PDF%2C%20whether%20it's%20embedded%20inside%20a%20web%20page%20or%20directly%20opened%20in%20Edge%20with%20.PDF%20extension%2C%20you%20get%20that%20option.%3CBR%20%2F%3E%3CBR%20%2F%3Ewhen%20you%20right-click%20anywhere%20else%20on%20web%20page%20you%20don't%20get%20that%20rotation%20option.%3CBR%20%2F%3EI've%20already%20explained%20many%20times%20in%20this%20thread.%20a%20PDF%20file%20can%20be%20embedded%20inside%20a%20web%20page%20that%20is%20written%20in%20HTML%20language.%3CBR%20%2F%3E%3CBR%20%2F%3Ethe%20right-click%20menu%20offers%20rotation%20only%20when%20you%20right-click%20on%20places%20where%20there%20is%20a%20PDF%2C%20you%20don't%20get%20to%20rotate%20the%20whole%20web%20page.%3CBR%20%2F%3E%3CBR%20%2F%3Enow%20which%20part%20of%20it%20is%20hard%20to%20understand%3F%20I%20can%20explain%20it%201000%20more%20times%20if%20you%20want%2C%20np%20with%20me%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1626845%22%20slang%3D%22en-US%22%3ERe%3A%20%22Save%20as%22%20in%20embedded%20PDF%20behaviour%20is%20wrong%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1626845%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F310193%22%20target%3D%22_blank%22%3E%40HotCakeX%3C%2FA%3E%26nbsp%3B%3CSPAN%3EThis%20issue%20has%20been%20addressed%20and%20fixed%20by%20Microsoft.%20It%20works%20since%20DEV%26nbsp%3B86.0.602.0.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

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.

 

stesch79_0-1587380733438.png

 

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?

 

10 Replies
Highlighted
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
Highlighted

@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.

Highlighted
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.
Highlighted

@HotCakeX But why does the browser than know, that Print and Rotate is only for the embedded PDF and NOT for the whole page?

Highlighted
That's obvious, because it's the whole page and not a PDF file.
Highlighted

@HotCakeX  No, it is not obvious.  If I click to Rotate only the PDF is rotated not the whole page:

stesch79_0-1587551821860.png

 

 

 

 

Highlighted
That's what should happen.
Edge doesn't have page rotate, only PDF rotate.
there is nothing wrong with that.
Highlighted

@HotCakeX But how can a normal user know, what the target is for? We have one context menu but multiple targets:

 

Save asis for the whole page
Printis for the PDF only
Rotate clockwiseis for the PDF only
Rotate counterwiseis for the PDF only

 

And further more, the same context menu in Chrome has "Save as" only for the PDF.

 

I think we do not find an agreement on that :)

 

I have opened a Support Request to address this. It is not obvious IMO.

Highlighted
Rotation is for PDFs only.

when you right-click on a PDF, whether it's embedded inside a web page or directly opened in Edge with .PDF extension, you get that option.

when you right-click anywhere else on web page you don't get that rotation option.
I've already explained many times in this thread. a PDF file can be embedded inside a web page that is written in HTML language.

the right-click menu offers rotation only when you right-click on places where there is a PDF, you don't get to rotate the whole web page.

now which part of it is hard to understand? I can explain it 1000 more times if you want, np with me :)
Highlighted

@HotCakeX This issue has been addressed and fixed by Microsoft. It works since DEV 86.0.602.0.