GetBookmark() 공개 정적인 메소드

public static GetBookmark ( PdfReader reader ) : Object>>.IList
reader PdfReader
리턴 Object>>.IList
예제 #1
0
        /**
         * Gets a <CODE>List</CODE> with the bookmarks. It returns <CODE>null</CODE> if
         * the document doesn't have any bookmarks.
         * @param reader the document
         * @return a <CODE>List</CODE> with the bookmarks or <CODE>null</CODE> if the
         * document doesn't have any
         */
        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));
        }