}
private void renderBookmarkItem(BookmarkData bookmarkItem,
PDFOutline parentBookmarkItem) {
PDFOutline pdfOutline = null;
PageViewport pv = bookmarkItem.getPageViewport();
if (pv != null) {
Rectangle2D bounds = pv.getViewArea();
double h = bounds.getHeight();
float yoffset = (float)h / 1000f;
String intDest = (String)pageReferences.get(pv.getKey());
if (parentBookmarkItem == null) {
PDFOutline outlineRoot = pdfDoc.getOutlineRoot();
pdfOutline = pdfDoc.getFactory().makeOutline(outlineRoot,
bookmarkItem.getBookmarkTitle(),
intDest, yoffset,