The point is to exclude header and footer from the document if someone is trying to print it with the client's printing feature. I was wondering if i could detect this somehow, and do something like this:
<html>
<body>
<?php
$printing = //detect whether or not trying to print
if (!printing) print_title_and_navibars();
?>
<!-- here goes the page content -->
<?php
if (!printing) print_footer();
?>
</body>
</html>
So that menus and other graphical extra stuff wouldn't appear on paper.