This module is included inside of Document class. It will creates methods to easy the use.
Example for a document with 4 pages, looking at the picture you can see the order in which the callbacks are executed
Executes after page create. Respond to :only and :except options
Executes after virtual page create. Respond to :only and :except options
Executes one time before document create.
Executes before page create. Respond to :only and :except options
Executes before virtual page create. Respond to :only and :except options
Executes on even pages create. Respond to :only and :except options
Executes one time on first page.
Executes one time on last page(end of document).
Executes on odd pages create. Respond to :only and :except options
[Validate]