Extending the date and variable insertion into the generated PDF