Title: RE: [iText-questions] problem with bookmark

I found a problem in your source code in the method bookmarkDepth():

        you try to cast a PdfNumber into a PdfIndirectReference. or this is not possible.
     //s.append(pages.get(((PdfIndirectReference)arr.get(0)).getNumber()));
               
        So I replace your code by this one and it looks like to done what we want.

                PdfNumber interm1 = (PdfNumber)arr.get(0);
                s.append(interm1.intValue());

What do you mean about my solution? I'm wrong o not?

thanks a lot:)

bye bastien.

Reply via email to