Added comments for clarity, tried finding algorithm for new pages in
PDFExp