Examples of PDDocumentOutline


Examples of org.pdfbox.pdmodel.interactive.documentnavigation.outline.PDDocumentOutline

     *
     * @return The document's outline.
     */
    public PDDocumentOutline getDocumentOutline()
    {
        PDDocumentOutline retval = null;
        COSDictionary dict = (COSDictionary)root.getDictionaryObject( "Outlines" );
        if( dict != null )
        {
            retval = new PDDocumentOutline( dict );
        }
       
        return retval;
    }
View Full Code Here

Examples of org.pdfbox.pdmodel.interactive.documentnavigation.outline.PDDocumentOutline

      return bookmarks_;
    }

    private List extractBookmarks()
    {
        final PDDocumentOutline outline = getPDFDocument().getDocumentCatalog().getDocumentOutline();
        final List result = new ArrayList();
        if (outline != null)
        {
             PDOutlineItem child = outline.getFirstChild();
            while (child != null)
            {
              final PdfBoxPDFBookmark topBookmark = new PdfBoxPDFBookmark(child, null);
              result.add(topBookmark);
              result.addAll(topBookmark.getAllChildren());
View Full Code Here

Examples of org.pdfbox.pdmodel.interactive.documentnavigation.outline.PDDocumentOutline

    return bookMarkList;
  }

  private void getBookmarks() {
    bookMarkList = new ArrayList();
    PDDocumentOutline root = pdDocument.getDocumentCatalog()
        .getDocumentOutline();
    if (root != null) {
      PDOutlineItem item = root.getFirstChild();
      rekursionBookmarks(item);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.