pub fn extract_bookmarks(doc: &Document) -> Vec<Bookmark>
Extract the document outline as a flat list of bookmarks with levels.