change constructor method so that we can chage the pdf size