This PR fixes an issue with generating pdf's on client side with autoPri...

...nt turned on. Previous verion inserted an iframe with the pdf and then removed it in a timeout. This resulted that Firefox couldn't print it from an iframe that has already been removed. Also switching between printers yielded in an error. Currently the iframe is removed upon first click somewhere on the page.