now downloads all pages in chapter to pdf