Parse the outlines of a PDF document