fix centering pagination when adding a hook in table rows and add chaining to pdfEvent object