Add page links into a document.