Fix printing single page with header/footer (fix #139)