public static IList<Dictionary<String, Object>> GetBookmark(PdfReader reader)
{
PdfDictionary catalog = reader.Catalog;
PdfObject obj = PdfReader.GetPdfObjectRelease(catalog.Get(PdfName.OUTLINES));
if (obj == null || !obj.IsDictionary())
return null;
PdfDictionary outlines = (PdfDictionary)obj;
return SimpleBookmark.GetBookmark(reader, outlines, false);
}