I'm using a link to print the actual page similar to this:
also tried it in some other ways, such as
But both ways my Browser (Safari) shows me the Content somehow cut with white surfaces over some content, and in PDF Preview only the first Page includes Content. If I print by the Browsers Menu everything is just fine, and then if i click on my button, also everything works fine, until i reload the page.
Did somebody already had the same issues, and how to solve this?
Thanks in advance
Sorry for reposting, but since the Website is already online and running, and i packed much of the CSS, i felt not very comfortable showing all the CSS Files in the leftbar.
To see the Problem you may look at the Website and hit the Printbutton on the bottom.
The problem goes away when toggling 'Print Backgrounds' on the print dialog (on or off, doesn't seem to matter)
Try explicitly setting the background of 'body' to white in the print stylesheet, and/or any other elements that have a background setting in the various css files.
try using self.print() instead of window.print(). It seems to work better in Safari.
I tried now:
But no changes, still the same problem.
Yes when i do so, it works just fine, just like if i hit print from the Menu. What could be the problem then?