page.setItem(COSName.PARENT, destination.createObject(pages));
// add new page to kids entry in the pages dictionary
COSArray kids = (COSArray) pages.getItem(COSName.getPDFName("Kids"));
kids.add(destination.createObject(page));
// and increase count
COSNumber count = (COSNumber) pages.getItem(COSName.COUNT);
pages.setItem(COSName.COUNT, new COSInteger(count.intValue() + 1));
}