If you want to download the entire content of the wiki, Confluence has a built support for exporting PDF. Just click on the Export button and it will generate the PDF for you.