limit file size and page count