parent = (PdfDictionary)File.resolve(parent.get(PdfName.Parent));
kids = (PdfArray)File.resolve(parent.get(PdfName.Kids));
}
else // Page subtree incomplete.
{
PdfReference kidReference = (PdfReference)kids.get(levelIndex);
PdfDictionary kid = (PdfDictionary)File.resolve(kidReference);
// Is current kid a page object?
if(kid.get(PdfName.Type).equals(PdfName.Page)) // Page object.
{
// 2. Page found.