I am having problems creating a pdf