0

This issue has been discussed on SO several times. Below are the posts I referred but none of them helped.

Link1

Link2

Link3

Link4

The contents of Iframe displays fine in browser (Chrome/ FireFox) but when I use the browser's print functionality, the contents are not completely printed. The print preview shows that the last line is cut off. Using height: 100vh is not acceptable because lot of blank spaces are left behind after the content.

Please see the stackblitz to recreate the issue.... StackBlitz I am manually setting the height to 204px in reality I intend to dynamically get the content's height and set the value

mAsK
  • 189
  • 3
  • 9

1 Answers1

0

I solved this issue by setting the height in pt rather than setting it in px values. Please feel free to add why pt works and not px.

mAsK
  • 189
  • 3
  • 9