/** * Adds a named outline to the document . * @param outline the outline to be added * @param name the name of this local destination */ void addOutline(PdfOutline outline, String name) { localDestination(name, outline.getPdfDestination()); }
/** * Adds a named outline to the document . * @param outline the outline to be added * @param name the name of this local destination */ void addOutline(PdfOutline outline, String name) { localDestination(name, outline.getPdfDestination()); }
/** * Adds a named outline to the document . * @param outline the outline to be added * @param name the name of this local destination */ void addOutline(PdfOutline outline, String name) { localDestination(name, outline.getPdfDestination()); }
protected void addBookmark(int level, String title, int x, int y) { Bookmark parent = bookmarkStack.peek(); while(parent.level > level - 1) { bookmarkStack.pop(); parent = bookmarkStack.peek(); } for (int i = parent.level + 1; i < level; ++i) { Bookmark emptyBookmark = new Bookmark(parent, parent.pdfOutline.getPdfDestination(), EMPTY_BOOKMARK_TITLE); bookmarkStack.push(emptyBookmark); parent = emptyBookmark; } Bookmark bookmark = new Bookmark(parent, x, jasperPrint.getPageHeight() - y, title); bookmarkStack.push(bookmark); }