Remove unneeded print configs

And fix pageSize error in lastPage