At runtime, you can print a dynamic document instead of displaying it by using theprint_document method.
You must already have created and merged the dynamic document.
Printing a Document Without Displaying It
Displaying and Printing a Document
If you print a dynamic document that is already displayed on the screen, set the