Fix some references to theView in makePDF