trying to fix the pdf page cut off problem