To be honest it looks like a bug. I set the script in the initialize event, and it does have effect on the first page. The overflow header and trailer should be the exact copies as on the first page. But it seems like that after every page it gets recalculated instead of using the same copy of the o...