Changes as per Brady's Comment regarding pdf output part 2. Sorry, Forgot to made this fix in previous commit.

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