PdfTemplateOnPageRendering Property
Optional callback invoked before the template is rendered on a page.
Return true to allow rendering or false to skip rendering on the current page.
This callback is evaluated after the ShowInFirstPage, ShowInOddPages and ShowInEvenPages conditions are applied.
The callback receives the final placement of the template on the current page