}
}
private void renderBookmarkItem(BookmarkData bookmarkItem,
PDFOutline parentBookmarkItem) {
PDFOutline pdfOutline = null;
String targetID = bookmarkItem.getIDRef();
if (targetID == null || targetID.length() == 0) {
throw new IllegalArgumentException("DestinationData must contain a ID reference");
}
PageViewport pv = bookmarkItem.getPageViewport();
if (pv != null) {
String pvKey = pv.getKey();
PDFGoTo gt = getPDFGoToForID(targetID, pvKey);
// create outline object:
PDFOutline parent = parentBookmarkItem != null
? parentBookmarkItem
: pdfDoc.getOutlineRoot();
pdfOutline = pdfDoc.getFactory().makeOutline(parent,
bookmarkItem.getBookmarkTitle(), gt, bookmarkItem.showChildItems());
} else {