New attempt :) PdfReader inputPDF = new PdfReader(filename); inputPDF.consolidateNamedDestinations(); List<HashMap<String,Object>> bookmarks = SimpleBookmark.getBookmark(inputPDF); [...] for (HashMap<String,Object> bookmark: bookmarks) { String title = bookmark.get("Title").toString(); String pageStr = bookmark.get("Page").toString(); String[] pageStrArr = pageStr.split(" "); Integer pageNumber = Integer.valueOf(pageStrArr[0]); }
-- View this message in context: http://itext-general.2136553.n4.nabble.com/Split-PDF-by-plain-Bookmark-tp4373196p4383193.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php