Pdf generator introduced to the main method...