Afterprint event listener for the document and the cancel button
The constructor
A reference to the printPageBuilder Object
Event listener method