This issue has been discussed on SO several times. Below are the posts I referred but none of them helped.
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