How to print the full document?