Header and footer rotation support