Changes for the pdf output footer and header to prevent overlapping and look nice.

Signed-off-by: Arnab Naha <superarnab@gmail.com>