Parse the document outline from a PDF file.