creating pdf on the fly done on get route