Fixing page numbers and pdf settings