Page mapping for PDF