question

11063902 avatar image
0 Votes"
11063902 asked YuZhou-MSFT commented

print option from context menu within iframe doesn't print the correct frame

Microsoft Edge - 89.0.774.77

I am trying to view a pdf within an iframe (using pdf.js library). Follow the steps below to reproduce the issue.

  1. Navigate to the link - https://jsfiddle.net/rishit_epari/uopyhe5L/5/

  2. Right-click anywhere in the document

  3. Click on print

  4. Rather than printing the pdf it is trying to print the web frame

How to make sure the pdf is printed while clicking on the print from the context menu?






ms-edge
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @11063902

I think it's by design that it will print the whole page because the context menu is for the whole page not for the iframe. The behavior is the same in Chrome.
We can't just print the iframe from the context menu. If you want to print the pdf in the iframe, you can directly click the print button in the iframe.

88612-image.png

0 Votes 0 ·
image.png (7.9 KiB)

0 Answers