added pdf generator